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:
Etan Kissling 2024-03-24 04:29:44 +01:00 committed by GitHub
parent c5f0d1def3
commit bedc601903
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ from std/sequtils import mapIt
from std/strutils import join
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
BlobQuarantine* = object