From 7d24e4308011a8541b4df714118bad0dfb81b6d1 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Thu, 25 Jul 2024 22:27:35 +0200 Subject: [PATCH] `valueOr` needs explicit fork for default value as well --- beacon_chain/gossip_processing/block_processor.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/gossip_processing/block_processor.nim b/beacon_chain/gossip_processing/block_processor.nim index d5414da77..f53796000 100644 --- a/beacon_chain/gossip_processing/block_processor.nim +++ b/beacon_chain/gossip_processing/block_processor.nim @@ -671,7 +671,7 @@ proc storeBlock( self[].lastPayload = signedBlock.message.slot # write blobs now that block has been written. - let blobs = blobsOpt.valueOr: BlobSidecars @[] + let blobs = blobsOpt.valueOr: blobFork.BlobSidecars() @[] for b in blobs: self.consensusManager.dag.db.putBlobSidecar(b[])