Skip to content

Commit

Permalink
Update trace
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Nov 30, 2021
1 parent 5a5ccd2 commit c2d3169
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions storage/src/state/ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,14 +607,22 @@ impl<N: Network> LedgerState<N> {
.filter(|transaction| {
for serial_number in transaction.serial_numbers() {
if let Ok(true) = self.contains_serial_number(serial_number) {
trace!("Miner is filtering out transaction {}", transaction.transaction_id());
trace!(
"Miner is filtering out transaction {} (serial_number {})",
transaction.transaction_id(),
serial_number
);
return false;
}
}

for commitment in transaction.commitments() {
if let Ok(true) = self.contains_commitment(commitment) {
trace!("Miner is filtering out transaction {}", transaction.transaction_id());
trace!(
"Miner is filtering out transaction {} (commitment {})",
transaction.transaction_id(),
commitment
);
return false;
}
}
Expand Down

0 comments on commit c2d3169

Please sign in to comment.