File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -252,8 +252,9 @@ func Transition(ctx *cli.Context) error {
252252 return NewError (ErrorConfig , errors .New ("EIP-1559 config but missing 'currentBaseFee' in env section" ))
253253 }
254254 }
255-
256- if env := prestate .Env ; chainConfig .IsMerged (big .NewInt (int64 (env .Number ))) {
255+ isMerged := chainConfig .TerminalTotalDifficulty != nil && chainConfig .TerminalTotalDifficulty .BitLen () == 0
256+ env := prestate .Env
257+ if isMerged {
257258 // post-merge:
258259 // - random must be supplied
259260 // - difficulty must be zero
Original file line number Diff line number Diff line change @@ -477,11 +477,6 @@ func (c *ChainConfig) IsArrowGlacier(num *big.Int) bool {
477477 return isForked (c .ArrowGlacierBlock , num )
478478}
479479
480- // IsMerged returns whether num is either equal to the TheMerge fork block or greater.
481- func (c * ChainConfig ) IsMerged (num * big.Int ) bool {
482- return isForked (c .MergeForkBlock , num )
483- }
484-
485480// IsTerminalPoWBlock returns whether the given block is the last block of PoW stage.
486481func (c * ChainConfig ) IsTerminalPoWBlock (parentTotalDiff * big.Int , totalDiff * big.Int ) bool {
487482 if c .TerminalTotalDifficulty == nil {
You can’t perform that action at this time.
0 commit comments