mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
attempt fix decoding bal
This commit is contained in:
parent
2266891ece
commit
d87d3195d9
1 changed files with 4 additions and 3 deletions
|
|
@ -467,15 +467,16 @@ func WriteBody(db ethdb.KeyValueWriter, hash common.Hash, number uint64, body *t
|
|||
WriteBodyRLP(db, hash, number, data)
|
||||
}
|
||||
|
||||
func ReadAccessList(db ethdb.Reader, hash common.Hash, number uint64) (al *bal.BlockAccessList) {
|
||||
func ReadAccessList(db ethdb.Reader, hash common.Hash, number uint64) *bal.BlockAccessList {
|
||||
var al bal.BlockAccessList
|
||||
data := ReadAccessListRLP(db, hash, number)
|
||||
if data != nil {
|
||||
err := rlp.DecodeBytes(data, al)
|
||||
err := rlp.DecodeBytes(data, &al)
|
||||
if err != nil {
|
||||
log.Crit("failed to RLP decode access list", "err", err)
|
||||
}
|
||||
}
|
||||
return al
|
||||
return &al
|
||||
}
|
||||
|
||||
func WriteAccessList(db ethdb.KeyValueWriter, hash common.Hash, number uint64, al *bal.BlockAccessList) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue