Skip to content

Commit

Permalink
Merge pull request #4600 from chenyukang/yukang-add-verify-log
Browse files Browse the repository at this point in the history
chore: add verify log for monitor
  • Loading branch information
chenyukang committed Aug 23, 2024
2 parents 0ceb6f8 + 2c2b1f1 commit 3bd5fed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tx-pool/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ impl TxPoolService {
self.process_orphan_tx(&tx).await;
}
Err(reject) => {
debug!(
info!(
"after_process {} {} remote reject: {} ",
tx_hash, peer, reject
);
Expand Down Expand Up @@ -686,6 +686,10 @@ impl TxPoolService {

if let Some(declared) = declared_cycles {
if declared != verified.cycles {
info!(
"process_tx declared cycles not match verified cycles, declared: {:?} verified: {:?}, tx: {:?}",
declared, verified.cycles, tx
);
return Some((
Err(Reject::DeclaredWrongCycles(declared, verified.cycles)),
snapshot,
Expand Down

0 comments on commit 3bd5fed

Please sign in to comment.