From bedc601903e1106d871f4792c1aea23554d1d42f Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Sun, 24 Mar 2024 04:29:44 +0100 Subject: [PATCH] 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. --- beacon_chain/consensus_object_pools/blob_quarantine.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beacon_chain/consensus_object_pools/blob_quarantine.nim b/beacon_chain/consensus_object_pools/blob_quarantine.nim index 1178f5edd..f4e5623bf 100644 --- a/beacon_chain/consensus_object_pools/blob_quarantine.nim +++ b/beacon_chain/consensus_object_pools/blob_quarantine.nim @@ -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