From 12394a820493c9b3a855065dd6e6130f37fa52e1 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 19 May 2026 17:14:38 +0200 Subject: [PATCH] core/types/bal: remove EncodedSize --- core/types/bal/bal_encoding.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/types/bal/bal_encoding.go b/core/types/bal/bal_encoding.go index 2777332c15..03f97f3809 100644 --- a/core/types/bal/bal_encoding.go +++ b/core/types/bal/bal_encoding.go @@ -28,7 +28,6 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/uint256" @@ -105,15 +104,6 @@ func (e *BlockAccessList) Hash() common.Hash { return crypto.Keccak256Hash(enc.Bytes()) } -func (e *BlockAccessList) EncodedSize() int { - b, err := rlp.EncodeToBytes(e) - if err != nil { - // TODO: proper to crit here? - log.Crit("failed to rlp encode access list", "err", err) - } - return len(b) -} - // encodingBalanceChange is the encoding format of BalanceChange. type encodingBalanceChange struct { TxIdx uint32