From 90dedc908b852e616b7b891f730de215d748eda9 Mon Sep 17 00:00:00 2001 From: Kariy Date: Mon, 15 Jan 2024 18:40:36 +0900 Subject: [PATCH] update --- crates/katana/core/src/service/block_producer.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/katana/core/src/service/block_producer.rs b/crates/katana/core/src/service/block_producer.rs index 68823635b6..53d9714373 100644 --- a/crates/katana/core/src/service/block_producer.rs +++ b/crates/katana/core/src/service/block_producer.rs @@ -250,7 +250,7 @@ impl IntervalBlockProducer { let results = { TransactionExecutor::new( &self.state.state, - &block_context, // &self.backend.env.read().block, + &block_context, !self.backend.config.disable_fee, !self.backend.config.disable_validate, transactions.clone().into_iter(), @@ -282,11 +282,6 @@ impl Stream for IntervalBlockProducer { fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { let pin = self.get_mut(); - // if !pin.is_initialized { - // pin.backend.update_block_context(); - // pin.is_initialized = true; - // } - if let Some(interval) = &mut pin.interval { if interval.poll_tick(cx).is_ready() && pin.block_mining.is_none() { let backend = pin.backend.clone(); @@ -362,8 +357,6 @@ impl InstantBlockProducer { let latest_state = StateFactoryProvider::latest(backend.blockchain.provider())?; let state = CachedStateWrapper::new(latest_state.into()); - // let block_context = backend.env.read().block.clone(); - let txs = transactions.iter().map(TxWithHash::from); let tx_receipt_pairs: Vec<(TxWithHash, Receipt)> = TransactionExecutor::new(