mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-15 11:21: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()
|
outer := enc.List()
|
||||||
for i := 0; it.Next(); i++ {
|
for i := 0; it.Next(); i++ {
|
||||||
txType, end := nextTxType()
|
txType, ok := nextTxType()
|
||||||
if end {
|
if !ok {
|
||||||
return nil, false, fmt.Errorf("block has less txs than receipts (%d)", i)
|
return nil, false, fmt.Errorf("block has less txs than receipts (%d)", i)
|
||||||
}
|
}
|
||||||
// Skip receipts before the requested index.
|
// Skip receipts before the requested index.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue