mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-13 10:21:37 +00:00
set incomplete true when the sizelimit is exceeded
This commit is contained in:
parent
412c25f048
commit
c7a527d580
1 changed files with 1 additions and 0 deletions
|
|
@ -276,6 +276,7 @@ func blockReceiptsToNetwork(blockReceipts, blockBody rlp.RawValue, q receiptQuer
|
|||
// which is always true because EIP-2718 does not allow tx types > 0x7f.
|
||||
size := rlp.ListSize(1 + uint64(len(content)))
|
||||
if q.sizeLimit > 0 && (uint64(enc.Size())+size) > q.sizeLimit {
|
||||
incomplete = true
|
||||
break
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue