Skip to content

Commit e66b9d4

Browse files
committed
refactor: attach host block header to SimEnv
1 parent 107c931 commit e66b9d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tasks/block/sim.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use init4_bin_base::{
1212
};
1313
use signet_sim::{BlockBuild, BuiltBlock, SimCache};
1414
use signet_types::constants::SignetSystemConstants;
15+
use tracing::info;
1516
use std::time::{Duration, Instant};
1617
use tokio::{
1718
sync::{
@@ -20,7 +21,6 @@ use tokio::{
2021
},
2122
task::JoinHandle,
2223
};
23-
use tracing::info;
2424
use trevm::revm::{
2525
context::BlockEnv,
2626
database::{AlloyDB, WrapDatabaseAsync},
@@ -48,7 +48,7 @@ pub struct SimResult {
4848
/// The block built with the successfully simulated transactions
4949
pub block: BuiltBlock,
5050
/// The block environment the transactions were simulated against.
51-
pub env: BlockEnv,
51+
pub env: SimEnv,
5252
}
5353

5454
impl Simulator {
@@ -189,7 +189,7 @@ impl Simulator {
189189
{
190190
Ok(block) => {
191191
debug!(block = ?block.block_number(), tx_count = block.transactions().len(), "built simulated block");
192-
let _ = submit_sender.send(SimResult { block, env: sim_env.block_env });
192+
let _ = submit_sender.send(SimResult { block, env: sim_env });
193193
}
194194
Err(e) => {
195195
error!(err = %e, "failed to build block");

0 commit comments

Comments
 (0)