|
61 | 61 | blobs*: Opt[BlobSidecars] |
62 | 62 | maybeFinalized*: bool |
63 | 63 | ## The block source claims the block has been finalized already |
64 | | - resfut*: Future[Result[void, VerifierError]] |
| 64 | + resfut*: Future[Result[void, VerifierError]].Raising([CancelledError]) |
65 | 65 | queueTick*: Moment # Moment when block was enqueued |
66 | 66 | validationDur*: Duration # Time it took to perform gossip validation |
67 | 67 | src*: MsgSource |
@@ -385,7 +385,7 @@ proc checkBloblessSignature(self: BlockProcessor, |
385 | 385 | proc enqueueBlock*( |
386 | 386 | self: var BlockProcessor, src: MsgSource, blck: ForkedSignedBeaconBlock, |
387 | 387 | blobs: Opt[BlobSidecars], |
388 | | - resfut: Future[Result[void, VerifierError]] = nil, |
| 388 | + resfut: Future[Result[void, VerifierError]].Raising([CancelledError]) = nil, |
389 | 389 | maybeFinalized = false, |
390 | 390 | validationDur = Duration()) = |
391 | 391 | withBlck(blck): |
@@ -756,7 +756,7 @@ proc storeBlock( |
756 | 756 | proc addBlock*( |
757 | 757 | self: var BlockProcessor, src: MsgSource, blck: ForkedSignedBeaconBlock, |
758 | 758 | blobs: Opt[BlobSidecars], maybeFinalized = false, |
759 | | - validationDur = Duration()): Future[Result[void, VerifierError]] = |
| 759 | + validationDur = Duration()): Future[Result[void, VerifierError]] {.async: (raises: [CancelledError], raw: true).} = |
760 | 760 | ## Enqueue a Gossip-validated block for consensus verification |
761 | 761 | # Backpressure: |
762 | 762 | # There is no backpressure here - producers must wait for `resfut` to |
|
0 commit comments