Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Oct 31, 2024
1 parent 332d98d commit 220ece2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions core/chain_makers.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (b *BlockGen) Difficulty() *big.Int {
func (b *BlockGen) SetParentBeaconRoot(root common.Hash) {
b.header.ParentBeaconRoot = &root
var (
blockContext = NewEVMBlockContext(b.header, b.cm, b.config, &b.header.Coinbase)
blockContext = NewEVMBlockContext(b.header, b.cm, b.cm.config, &b.header.Coinbase)
vmenv = vm.NewEVM(blockContext, vm.TxContext{}, b.statedb, b.cm.config, vm.Config{})
)
ProcessBeaconBlockRoot(root, vmenv, b.statedb)
Expand Down Expand Up @@ -233,9 +233,9 @@ func (b *BlockGen) AddUncle(h *types.Header) {

// The gas limit and price should be derived from the parent
h.GasLimit = parent.GasLimit
if b.config.IsCurie(h.Number) {
if b.cm.config.IsCurie(h.Number) {
parentL1BaseFee := fees.GetL1BaseFee(b.statedb)
h.BaseFee = eip1559.CalcBaseFee(b.config, parent, parentL1BaseFee)
h.BaseFee = eip1559.CalcBaseFee(b.cm.config, parent, parentL1BaseFee)
}
b.uncles = append(b.uncles, h)
}
Expand Down Expand Up @@ -432,9 +432,9 @@ func (cm *chainMaker) makeHeader(parent *types.Block, state *state.StateDB, engi
Number: new(big.Int).Add(parent.Number(), common.Big1),
Time: time,
}
if chain.Config().IsCurie(header.Number) {
if cm.Config().IsCurie(header.Number) {
parentL1BaseFee := fees.GetL1BaseFee(state)
header.BaseFee = eip1559.CalcBaseFee(chain.Config(), parent.Header(), parentL1BaseFee)
header.BaseFee = eip1559.CalcBaseFee(cm.Config(), parent.Header(), parentL1BaseFee)
}
if cm.config.IsCancun(header.Number, header.Time) {
var (
Expand Down
4 changes: 0 additions & 4 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,6 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *trie.Database, gen
} else {
log.Info("Writing custom genesis block")
}
if genesis.Config.Scroll.ZktrieEnabled() { // genesis.Config must be not nil atm
// overwrite triedb IsUsingZktrie config to be safe
triedb.SetIsUsingZktrie(genesis.Config.Scroll.ZktrieEnabled())
}
applyOverrides(genesis.Config)
block, err := genesis.Commit(db, triedb)
if err != nil {
Expand Down

0 comments on commit 220ece2

Please sign in to comment.