`Opt[Forky]` does not work as it does in `ref` and `seq` / `openArray`
This commit is contained in:
parent
5e582cff8f
commit
88bdc6ae55
|
@ -173,7 +173,7 @@ from ../consensus_object_pools/block_clearance import
|
||||||
proc storeBackfillBlock(
|
proc storeBackfillBlock(
|
||||||
self: var BlockProcessor,
|
self: var BlockProcessor,
|
||||||
signedBlock: ForkySignedBeaconBlock,
|
signedBlock: ForkySignedBeaconBlock,
|
||||||
blobsOpt: Opt[ForkyBlobSidecars]
|
blobsOpt: OptForkyBlobSidecars
|
||||||
): Result[void, VerifierError] =
|
): Result[void, VerifierError] =
|
||||||
const
|
const
|
||||||
consensusFork = typeof(signedBlock).kind
|
consensusFork = typeof(signedBlock).kind
|
||||||
|
@ -441,7 +441,7 @@ proc enqueueBlock*(
|
||||||
proc storeBlock(
|
proc storeBlock(
|
||||||
self: ref BlockProcessor, src: MsgSource, wallTime: BeaconTime,
|
self: ref BlockProcessor, src: MsgSource, wallTime: BeaconTime,
|
||||||
signedBlock: ForkySignedBeaconBlock,
|
signedBlock: ForkySignedBeaconBlock,
|
||||||
blobsOpt: Opt[ForkyBlobSidecars],
|
blobsOpt: OptForkyBlobSidecars,
|
||||||
maybeFinalized = false,
|
maybeFinalized = false,
|
||||||
queueTick: Moment = Moment.now(),
|
queueTick: Moment = Moment.now(),
|
||||||
validationDur = Duration()
|
validationDur = Duration()
|
||||||
|
|
|
@ -283,6 +283,9 @@ type
|
||||||
ForkyBlobSidecars* =
|
ForkyBlobSidecars* =
|
||||||
deneb.BlobSidecars
|
deneb.BlobSidecars
|
||||||
|
|
||||||
|
OptForkyBlobSidecars* =
|
||||||
|
Opt[deneb.BlobSidecars]
|
||||||
|
|
||||||
ForkedBlobSidecar* = object
|
ForkedBlobSidecar* = object
|
||||||
case kind*: BlobFork
|
case kind*: BlobFork
|
||||||
of BlobFork.Deneb:
|
of BlobFork.Deneb:
|
||||||
|
|
Loading…
Reference in New Issue