`Opt[Forky]` does not work as it does in `ref` and `seq` / `openArray`

This commit is contained in:
Etan Kissling 2024-07-25 21:59:49 +02:00
parent 5e582cff8f
commit 88bdc6ae55
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
2 changed files with 5 additions and 2 deletions

View File

@ -173,7 +173,7 @@ from ../consensus_object_pools/block_clearance import
proc storeBackfillBlock(
self: var BlockProcessor,
signedBlock: ForkySignedBeaconBlock,
blobsOpt: Opt[ForkyBlobSidecars]
blobsOpt: OptForkyBlobSidecars
): Result[void, VerifierError] =
const
consensusFork = typeof(signedBlock).kind
@ -441,7 +441,7 @@ proc enqueueBlock*(
proc storeBlock(
self: ref BlockProcessor, src: MsgSource, wallTime: BeaconTime,
signedBlock: ForkySignedBeaconBlock,
blobsOpt: Opt[ForkyBlobSidecars],
blobsOpt: OptForkyBlobSidecars,
maybeFinalized = false,
queueTick: Moment = Moment.now(),
validationDur = Duration()

View File

@ -283,6 +283,9 @@ type
ForkyBlobSidecars* =
deneb.BlobSidecars
OptForkyBlobSidecars* =
Opt[deneb.BlobSidecars]
ForkedBlobSidecar* = object
case kind*: BlobFork
of BlobFork.Deneb: