eth/protocols/eth: fix empty response

This commit is contained in:
Felix Lange 2026-05-18 22:55:12 +02:00
parent 39c78e6910
commit b122a67b23

View file

@ -687,7 +687,9 @@ func serviceGetBlockAccessListsQuery(chain *core.BlockChain, query GetBlockAcces
}
data := chain.GetAccessListRLP(hash)
if len(data) == 0 {
bals.AppendRaw([]byte{0xC0})
// The signal for missing BAL is the empty string, because
// an empty list is also a valid BAL.
bals.AppendRaw(rlp.EmptyString)
continue
}
bals.AppendRaw(data)