Skip to content

Commit

Permalink
recover coinbase in injected batch
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Aug 29, 2024
1 parent 714f771 commit 9e3c933
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zk/stages/stage_sequence_execute_injected_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ func processInjectedInitialBatch(
return err
}

coinbase := batchState.getCoinbase(batchContext.cfg)
header, parentBlock, err := prepareHeader(batchContext.sdb.tx, 0, math.MaxUint64, math.MaxUint64, batchState.forkId, coinbase)
header, parentBlock, err := prepareHeader(batchContext.sdb.tx, 0, math.MaxUint64, math.MaxUint64, batchState.forkId, batchContext.cfg.zk.AddressSequencer)
if err != nil {
return err
}
Expand All @@ -41,7 +40,7 @@ func processInjectedInitialBatch(
return rawdb.ReadHeader(batchContext.sdb.tx, hash, number)
}
getHashFn := core.GetHashFn(header, getHeader)
blockContext := core.NewEVMBlockContext(header, getHashFn, batchContext.cfg.engine, &coinbase, parentBlock.ExcessDataGas())
blockContext := core.NewEVMBlockContext(header, getHashFn, batchContext.cfg.engine, &batchContext.cfg.zk.AddressSequencer, parentBlock.ExcessDataGas())

injected, err := batchContext.sdb.hermezDb.GetL1InjectedBatch(0)
if err != nil {
Expand Down

0 comments on commit 9e3c933

Please sign in to comment.