improve option naming
This commit is contained in:
parent
e13846bec6
commit
bde1eefdcf
|
@ -688,10 +688,10 @@ proc onSlotStart(node: BeaconNode, lastSlot, scheduledSlot: Slot) {.gcsafe, asyn
|
|||
cat = "scheduling"
|
||||
|
||||
# Check before any re-scheduling of onSlotStart()
|
||||
if node.config.checkEpochs > 0'u64 and
|
||||
scheduledSlot.compute_epoch_at_slot() >= node.config.checkEpochs:
|
||||
if node.config.stopAtEpoch > 0'u64 and
|
||||
scheduledSlot.compute_epoch_at_slot() >= node.config.stopAtEpoch:
|
||||
info "Stopping at pre-chosen epoch",
|
||||
chosenEpoch = node.config.checkEpochs,
|
||||
chosenEpoch = node.config.stopAtEpoch,
|
||||
epoch = scheduledSlot.compute_epoch_at_slot(),
|
||||
slot = scheduledSlot
|
||||
|
||||
|
|
|
@ -137,10 +137,10 @@ type
|
|||
desc: "Specify whether to verify finalization occurs on schedule, for testing."
|
||||
name: "verify-finalization" }: bool
|
||||
|
||||
checkEpochs* {.
|
||||
stopAtEpoch* {.
|
||||
defaultValue: 0
|
||||
desc: "A positive checkEpochs selects how many epochs to run."
|
||||
name: "check-epochs" }: uint64
|
||||
desc: "A positive epoch selects the epoch at which to stop."
|
||||
name: "stop-at-epoch" }: uint64
|
||||
|
||||
metricsServer* {.
|
||||
defaultValue: false
|
||||
|
|
Loading…
Reference in New Issue