Skip to content

Commit

Permalink
Address review comments part 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed Oct 15, 2024
1 parent 7e8b248 commit c881784
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions beacon_chain/validator_client/block_service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ const

logScope: service = ServiceName

type
PreparedBeaconBlock = object
blockRoot*: Eth2Digest
data*: ForkedBeaconBlock
kzgProofsOpt*: Opt[deneb.KzgProofs]
blobsOpt*: Opt[deneb.Blobs]

PreparedBlindedBeaconBlock = object
blockRoot*: Eth2Digest
data*: ForkedBlindedBeaconBlock

func shortLog(v: Opt[UInt256]): auto =
if v.isNone(): "<not available>" else: toString(v.get, 10)

Expand Down Expand Up @@ -599,11 +588,9 @@ proc runBlockPollMonitor(service: BlockServiceRef,
node = node

while true:
let currentSlot =
block:
let res = await vc.checkedWaitForNextSlot(ZeroTimeDiff, false)
if res.isNone(): continue
res.geT()
let currentSlot {.used.} =
(await vc.checkedWaitForNextSlot(ZeroTimeDiff, false)).valueOr:
continue

while node.status notin statuses:
await vc.waitNodes(nil, statuses, roles, true)
Expand Down

0 comments on commit c881784

Please sign in to comment.