mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-26 22:39:49 +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
|
||||
|
||||
func popBlobless*(quarantine: var Quarantine, root: Eth2Digest):
|
||||
Option[deneb.SignedBeaconBlock] =
|
||||
Opt[deneb.SignedBeaconBlock] =
|
||||
var blck: deneb.SignedBeaconBlock
|
||||
if quarantine.blobless.pop(root, blck):
|
||||
return some(blck)
|
||||
Opt.some(blck)
|
||||
else:
|
||||
return none(deneb.SignedBeaconBlock)
|
||||
Opt.none(deneb.SignedBeaconBlock)
|
||||
|
||||
iterator peekBlobless*(quarantine: var Quarantine): deneb.SignedBeaconBlock =
|
||||
for k, v in quarantine.blobless.mpairs():
|
||||
|
Loading…
x
Reference in New Issue
Block a user