fix: lint fix 4

This commit is contained in:
Oleksandr Pravdyvyi 2025-06-18 15:58:15 +03:00
parent f9eee73ef4
commit 48a43eb268
2 changed files with 14 additions and 18 deletions

View File

@ -242,8 +242,7 @@ impl NodeChainStore {
);
info!(
"Snapshot executed at {:?} with results {snapshot_trace:#?}",
block_id
"Snapshot executed at {block_id:?} with results {snapshot_trace:#?}"
);
}
}

View File

@ -131,23 +131,20 @@ impl SequencerCore {
//Tree checks
let tx_tree_check = self.store.pub_tx_store.get_tx(*hash).is_some();
let nullifier_tree_check = nullifier_created_hashes
.iter()
.map(|nullifier_hash| {
let nullifier_tree_check = nullifier_created_hashes.iter().any(|nullifier_hash| {
self.store.nullifier_store.contains(&UTXONullifier {
utxo_hash: *nullifier_hash,
})
})
.any(|check| check);
let utxo_commitments_check = utxo_commitments_created_hashes
});
let utxo_commitments_check =
utxo_commitments_created_hashes
.iter()
.map(|utxo_commitment_hash| {
.any(|utxo_commitment_hash| {
self.store
.utxo_commitments_store
.get_tx(*utxo_commitment_hash)
.is_some()
})
.any(|check| check);
});
if tx_tree_check {
return Err(TransactionMalformationErrorKind::TxHashAlreadyPresentInTree { tx: *hash });