mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 11:36:37 +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)
|
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)
|
data := ReadAccessListRLP(db, hash, number)
|
||||||
if data != nil {
|
if data != nil {
|
||||||
err := rlp.DecodeBytes(data, al)
|
err := rlp.DecodeBytes(data, &al)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Crit("failed to RLP decode access list", "err", err)
|
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) {
|
func WriteAccessList(db ethdb.KeyValueWriter, hash common.Hash, number uint64, al *bal.BlockAccessList) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue