diff --git a/consensus/misc/eip4788.go b/consensus/misc/eip4788.go index 099fdcbf6..e95b1c51e 100644 --- a/consensus/misc/eip4788.go +++ b/consensus/misc/eip4788.go @@ -4,7 +4,6 @@ import ( "github.com/holiman/uint256" libcommon "github.com/ledgerwatch/erigon-lib/common" - "github.com/ledgerwatch/erigon/consensus" "github.com/ledgerwatch/erigon/core/state" "github.com/ledgerwatch/erigon/core/types" @@ -21,11 +20,4 @@ func ApplyBeaconRootEip4788(chain consensus.ChainHeaderReader, header *types.Hea parentBeaconBlockRootInt := *uint256.NewInt(0).SetBytes(header.ParentBeaconBlockRoot.Bytes()) state.SetState(historyStorageAddress, ×tampIndex, *uint256.NewInt(header.Time)) state.SetState(historyStorageAddress, &rootIndex, parentBeaconBlockRootInt) - - // Ensure that the historyStorageAddress has nonzero nonce to prevent wipe-out of its storage stipulated by EIP-161 - // (when the historyStorageAddress has zero balance). - // See https://github.com/ethereum/EIPs/pull/7431 - if state.GetNonce(historyStorageAddress) == 0 { - state.SetNonce(historyStorageAddress, 1) - } }