Skip to content

Commit

Permalink
log gas_used & block_num for each landed tx
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Dec 11, 2024
1 parent 54536e3 commit 7768d1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/core/src/spammer/tx_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ where
if !receipt.status() {
println!("tx failed: {:?}", pending_tx.tx_hash);
}
println!(
"tx {} used {} gas, included in block {}",
pending_tx.tx_hash,
receipt.gas_used,
receipt
.block_number
.map(|n| n.to_string())
.unwrap_or("N/A".to_owned())
);
RunTx {
tx_hash: pending_tx.tx_hash,
start_timestamp: pending_tx.start_timestamp,
Expand Down

0 comments on commit 7768d1f

Please sign in to comment.