improve option naming

This commit is contained in:
Dustin Brody 2020-02-17 22:22:50 +01:00 committed by tersec
parent e13846bec6
commit bde1eefdcf
2 changed files with 6 additions and 6 deletions

View File

@ -688,10 +688,10 @@ proc onSlotStart(node: BeaconNode, lastSlot, scheduledSlot: Slot) {.gcsafe, asyn
cat = "scheduling" cat = "scheduling"
# Check before any re-scheduling of onSlotStart() # Check before any re-scheduling of onSlotStart()
if node.config.checkEpochs > 0'u64 and if node.config.stopAtEpoch > 0'u64 and
scheduledSlot.compute_epoch_at_slot() >= node.config.checkEpochs: scheduledSlot.compute_epoch_at_slot() >= node.config.stopAtEpoch:
info "Stopping at pre-chosen epoch", info "Stopping at pre-chosen epoch",
chosenEpoch = node.config.checkEpochs, chosenEpoch = node.config.stopAtEpoch,
epoch = scheduledSlot.compute_epoch_at_slot(), epoch = scheduledSlot.compute_epoch_at_slot(),
slot = scheduledSlot slot = scheduledSlot

View File

@ -137,10 +137,10 @@ type
desc: "Specify whether to verify finalization occurs on schedule, for testing." desc: "Specify whether to verify finalization occurs on schedule, for testing."
name: "verify-finalization" }: bool name: "verify-finalization" }: bool
checkEpochs* {. stopAtEpoch* {.
defaultValue: 0 defaultValue: 0
desc: "A positive checkEpochs selects how many epochs to run." desc: "A positive epoch selects the epoch at which to stop."
name: "check-epochs" }: uint64 name: "stop-at-epoch" }: uint64
metricsServer* {. metricsServer* {.
defaultValue: false defaultValue: false