Skip to content

Commit f47f603

Browse files
committed
chore: cleanup
1 parent 0e9efcb commit f47f603

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/tasks/block/sim.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ use crate::{
66
tasks::env::SimEnv,
77
};
88
use alloy::{eips::BlockId, network::Ethereum};
9-
use init4_bin_base::{deps::metrics::counter, utils::calc::SlotCalculator};
9+
use init4_bin_base::{
10+
deps::metrics::{counter, histogram},
11+
utils::calc::SlotCalculator,
12+
};
1013
use signet_sim::{BlockBuild, BuiltBlock, SimCache};
1114
use signet_types::constants::SignetSystemConstants;
1215
use std::time::{Duration, Instant};
@@ -145,7 +148,8 @@ impl Simulator {
145148
block_number = built_block.block_number(),
146149
"block simulation completed",
147150
);
148-
counter!("signet.builder.simulated_blocks").increment(1);
151+
counter!("signet.builder.built_blocks").increment(1);
152+
histogram!("signet.builder.built_blocks.tx_count").record(built_block.tx_count() as f64);
149153

150154
Ok(built_block)
151155
}

src/tasks/submit/flashbots.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,7 @@ impl FlashbotsTask {
120120
break;
121121
};
122122
let span = sim_result.span();
123-
span_debug!(
124-
span,
125-
host_block_number = sim_result.host_block_number(),
126-
"received sim result"
127-
);
123+
span_debug!(span, "received sim result");
128124

129125
// Prepare a MEV bundle with the configured call type from the sim result
130126
let Ok(bundle) =

0 commit comments

Comments
 (0)