From 5c4d46f3614d26654241849da7dfd46b95eed1c6 Mon Sep 17 00:00:00 2001 From: lightclient Date: Wed, 4 Sep 2024 14:07:56 +0200 Subject: [PATCH] core: remove check --- core/state_processor.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index 9c6600be55..2844693a9e 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -17,7 +17,6 @@ package core import ( - "errors" "fmt" "math/big" @@ -97,11 +96,6 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg receipts = append(receipts, receipt) allLogs = append(allLogs, receipt.Logs...) } - // Fail if Shanghai not enabled and len(withdrawals) is non-zero. - withdrawals := block.Withdrawals() - if len(withdrawals) > 0 && !p.config.IsShanghai(block.Number(), block.Time()) { - return nil, errors.New("withdrawals before shanghai") - } // Read requests if Prague is enabled. var requests types.Requests if p.config.IsPrague(block.Number(), block.Time()) {