Skip to content

Commit

Permalink
log failed tx hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Dec 11, 2024
1 parent bbdd837 commit 54536e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/core/src/spammer/tx_actor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{sync::Arc, time::Duration};

use alloy::{primitives::TxHash, providers::Provider};
use alloy::{network::ReceiptResponse, primitives::TxHash, providers::Provider};
use tokio::sync::{mpsc, oneshot};

use crate::{
Expand Down Expand Up @@ -150,6 +150,9 @@ where
.iter()
.find(|r| r.transaction_hash == pending_tx.tx_hash)
.expect("this should never happen");
if !receipt.status() {
println!("tx failed: {:?}", pending_tx.tx_hash);
}
RunTx {
tx_hash: pending_tx.tx_hash,
start_timestamp: pending_tx.start_timestamp,
Expand Down

0 comments on commit 54536e3

Please sign in to comment.