mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-27 14:58:46 +00:00
Option[deneb.SignedBeaconBlock] -> Opt[deneb.SignedBeaconBlock] (#5620)
This commit is contained in:
parent
0e5234efcc
commit
5aa595fbc6
@ -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():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user