Skip to content

Commit

Permalink
enha: canary miner: log txs before executing (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19-cw authored Nov 12, 2024
1 parent cd24c04 commit d6227aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eth/follower/importer/importer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ impl Importer {
// if it's fake miner, execute each tx and skip mining and commiting
if let ImporterMode::FakeLeader = importer_mode {
for tx in &block.transactions {
tracing::info!(?tx, "executing tx as fake miner");

let Ok(tx_input) = rlp::decode(&tx.0.input) else {
tracing::error!("Failed to decode processed transaction");
continue; // skip this tx
Expand Down

0 comments on commit d6227aa

Please sign in to comment.