Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Jan 15, 2024
1 parent 861f565 commit 90dedc9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions crates/katana/core/src/service/block_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -282,11 +282,6 @@ impl Stream for IntervalBlockProducer {
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
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();
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 90dedc9

Please sign in to comment.