mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
core/types/bal: remove EncodedSize
This commit is contained in:
parent
73a7d1ebb4
commit
12394a8204
1 changed files with 0 additions and 10 deletions
|
|
@ -28,7 +28,6 @@ import (
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/log"
|
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
"github.com/ethereum/go-ethereum/rlp"
|
"github.com/ethereum/go-ethereum/rlp"
|
||||||
"github.com/holiman/uint256"
|
"github.com/holiman/uint256"
|
||||||
|
|
@ -105,15 +104,6 @@ func (e *BlockAccessList) Hash() common.Hash {
|
||||||
return crypto.Keccak256Hash(enc.Bytes())
|
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.
|
// encodingBalanceChange is the encoding format of BalanceChange.
|
||||||
type encodingBalanceChange struct {
|
type encodingBalanceChange struct {
|
||||||
TxIdx uint32
|
TxIdx uint32
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue