Skip to content

Commit fc99d00

Browse files
committed
put alloydb back to prev header
1 parent 6d63ef7 commit fc99d00

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/tasks/env.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
};
66
use alloy::{
77
consensus::Header,
8-
eips::{eip1559::BaseFeeParams},
8+
eips::eip1559::BaseFeeParams,
99
network::Ethereum,
1010
primitives::{B256, U256},
1111
providers::{Provider, network::Network},
@@ -14,7 +14,7 @@ use signet_constants::SignetSystemConstants;
1414
use signet_sim::{HostEnv, RollupEnv};
1515
use tokio::{sync::watch, task::JoinHandle};
1616
use tokio_stream::StreamExt;
17-
use tracing::{Instrument, Span, debug, info_span};
17+
use tracing::{Instrument, Span, info_span};
1818
use trevm::revm::{
1919
context::BlockEnv,
2020
context_interface::block::BlobExcessGasAndPrice,
@@ -139,7 +139,7 @@ impl SimEnv {
139139
///
140140
/// This function will panic if not called within a Tokio runtime.
141141
pub fn rollup_db(&self, provider: RuProvider) -> RollupAlloyDatabaseProvider {
142-
WrapDatabaseAsync::new(self.rollup.alloy_db(provider, BlockId::pending())).expect("in tokio runtime")
142+
WrapDatabaseAsync::new(self.rollup.alloy_db(providerber)xpect("in tokio runtime")
143143
}
144144

145145
/// Create an [`AlloyDB`] for the host environment using the given provider.
@@ -148,8 +148,7 @@ impl SimEnv {
148148
///
149149
/// This function will panic if not called within a Tokio runtime.
150150
pub fn host_db(&self, provider: HostProvider) -> HostAlloyDatabaseProvider {
151-
debug!(block_number = ?BlockId::pending(), "creating alloy DB for host");
152-
WrapDatabaseAsync::new(self.host.alloy_db(provider, BlockId::pending())).expect("in tokio runtime")
151+
WrapDatabaseAsync::new(self.host.alloy_db(provider)).expect("in tokio runtime")
153152
}
154153

155154
/// Create a simulated rollup environment using the given provider,

0 commit comments

Comments
 (0)