mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-08 00:03:09 +00:00
fix: lint fix 4
This commit is contained in:
parent
f9eee73ef4
commit
48a43eb268
@ -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:#?}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user