Skip to content

Commit

Permalink
canyon fork: revert disable create2deployer in canyon fork (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: Nolan <[email protected]>
  • Loading branch information
bnoieh and nolanxyg authored Apr 28, 2024
1 parent 6cc5d7f commit fa2ac3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
misc.ApplyPreContractHardFork(statedb)
}

// opBNB no need to hard code this contract via hardfork
// misc.EnsureCreate2Deployer(p.config, block.Time(), statedb)
misc.EnsureCreate2Deployer(p.config, block.Time(), statedb)

var (
context = NewEVMBlockContext(header, p.bc, nil, p.config, statedb)
Expand Down
3 changes: 1 addition & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,7 @@ func (w *worker) generateWork(genParams *generateParams) *newPayloadResult {
misc.ApplyPreContractHardFork(work.state)
}

// opBNB no need to hard code this contract via hardfork
// misc.EnsureCreate2Deployer(w.chainConfig, work.header.Time, work.state)
misc.EnsureCreate2Deployer(w.chainConfig, work.header.Time, work.state)

start := time.Now()
for _, tx := range genParams.txs {
Expand Down

0 comments on commit fa2ac3e

Please sign in to comment.