Option[deneb.SignedBeaconBlock] -> Opt[deneb.SignedBeaconBlock] (#5620)

This commit is contained in:
tersec 2023-11-24 16:34:45 +00:00 committed by GitHub
parent 0e5234efcc
commit 5aa595fbc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,12 +311,12 @@ proc addBlobless*(
true true
func popBlobless*(quarantine: var Quarantine, root: Eth2Digest): func popBlobless*(quarantine: var Quarantine, root: Eth2Digest):
Option[deneb.SignedBeaconBlock] = Opt[deneb.SignedBeaconBlock] =
var blck: deneb.SignedBeaconBlock var blck: deneb.SignedBeaconBlock
if quarantine.blobless.pop(root, blck): if quarantine.blobless.pop(root, blck):
return some(blck) Opt.some(blck)
else: else:
return none(deneb.SignedBeaconBlock) Opt.none(deneb.SignedBeaconBlock)
iterator peekBlobless*(quarantine: var Quarantine): deneb.SignedBeaconBlock = iterator peekBlobless*(quarantine: var Quarantine): deneb.SignedBeaconBlock =
for k, v in quarantine.blobless.mpairs(): for k, v in quarantine.blobless.mpairs():