Skip to content

Commit f593ffb

Browse files
islishudezfy0701
authored andcommitted
core: remove withdrawal length check for state processor (ethereum#30286)
The withdrawal length is already verified by the beacon consensus package, so the check in the state processor is a duplicate.
1 parent 7cc341b commit f593ffb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

core/state_processor.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package core
1818

1919
import (
20-
"errors"
2120
"fmt"
2221
"math/big"
2322

@@ -93,11 +92,6 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
9392
receipts = append(receipts, receipt)
9493
allLogs = append(allLogs, receipt.Logs...)
9594
}
96-
// Fail if Shanghai not enabled and len(withdrawals) is non-zero.
97-
withdrawals := block.Withdrawals()
98-
if len(withdrawals) > 0 && !p.config.IsShanghai(block.Number(), block.Time()) {
99-
return nil, nil, 0, errors.New("withdrawals before shanghai")
100-
}
10195
// Finalize the block, applying any consensus engine specific extras (e.g. block rewards)
10296
p.chain.engine.Finalize(p.chain, header, statedb, block.Body())
10397

0 commit comments

Comments
 (0)