mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 18:01:36 +00:00
fix test error
This commit is contained in:
parent
eefafc17ba
commit
9ab6b2fe11
1 changed files with 2 additions and 2 deletions
|
|
@ -262,8 +262,8 @@ func blockReceiptsToNetwork(blockReceipts, blockBody rlp.RawValue, q receiptQuer
|
|||
)
|
||||
outer := enc.List()
|
||||
for i := 0; it.Next(); i++ {
|
||||
txType, end := nextTxType()
|
||||
if end {
|
||||
txType, ok := nextTxType()
|
||||
if !ok {
|
||||
return nil, false, fmt.Errorf("block has less txs than receipts (%d)", i)
|
||||
}
|
||||
// Skip receipts before the requested index.
|
||||
|
|
|
|||
Loading…
Reference in a new issue