`valueOr` needs explicit fork for default value as well

This commit is contained in:
Etan Kissling 2024-07-25 22:27:35 +02:00
parent 5df441d936
commit 7d24e43080
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ proc storeBlock(
self[].lastPayload = signedBlock.message.slot self[].lastPayload = signedBlock.message.slot
# write blobs now that block has been written. # write blobs now that block has been written.
let blobs = blobsOpt.valueOr: BlobSidecars @[] let blobs = blobsOpt.valueOr: blobFork.BlobSidecars() @[]
for b in blobs: for b in blobs:
self.consensusManager.dag.db.putBlobSidecar(b[]) self.consensusManager.dag.db.putBlobSidecar(b[])