mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
eth/protocols/eth: fix empty response
This commit is contained in:
parent
39c78e6910
commit
b122a67b23
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue