mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-20 19:40:52 +00:00
increase blob quarantine capacity to match block quarantine capacity (#6128)
Blobs are cached from gossip and other sources for all orphans, not just those specifically tagged as `blobless`. `blobless` only means that they are actively fetched from the network. The `MaxBlobs` should be aligned to match `MaxOrphans`. Note that blobs are tiny compared to blocks, so this isn't a huge memory hog.
This commit is contained in:
parent
c5f0d1def3
commit
bedc601903
@ -15,7 +15,9 @@ from std/sequtils import mapIt
|
|||||||
from std/strutils import join
|
from std/strutils import join
|
||||||
|
|
||||||
const
|
const
|
||||||
MaxBlobs = SLOTS_PER_EPOCH * MAX_BLOBS_PER_BLOCK
|
MaxBlobs = 3 * SLOTS_PER_EPOCH * MAX_BLOBS_PER_BLOCK
|
||||||
|
## Same limit as `MaxOrphans` in `block_quarantine`;
|
||||||
|
## blobs may arrive before an orphan is tagged `blobless`
|
||||||
|
|
||||||
type
|
type
|
||||||
BlobQuarantine* = object
|
BlobQuarantine* = object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user