Fix a typo in start.sh; Display the full slot number in the statusbar [skip ci]

This commit is contained in:
Zahary Karadjov 2019-10-29 21:48:32 +02:00
parent 068cc8066e
commit 72c42838cb
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
3 changed files with 5 additions and 2 deletions

View File

@ -867,6 +867,9 @@ when hasPrompt:
of "slots_per_epoch": of "slots_per_epoch":
$SLOTS_PER_EPOCH $SLOTS_PER_EPOCH
of "slot":
$node.beaconClock.now.slotOrZero
of "slot_trailing_digits": of "slot_trailing_digits":
var slotStr = $node.beaconClock.now.slotOrZero var slotStr = $node.beaconClock.now.slotOrZero
if slotStr.len > 3: slotStr = slotStr[^3..^1] if slotStr.len > 3: slotStr = slotStr[^3..^1]

View File

@ -64,7 +64,7 @@ type
statusBarContents* {. statusBarContents* {.
desc: "" desc: ""
defaultValue: "peers: $connected_peers; " & defaultValue: "peers: $connected_peers; " &
"epoch: $epoch, slot: $epoch_slot/$slots_per_epoch (..$slot_trailing_digits); " & "epoch: $epoch, slot: $epoch_slot/$slots_per_epoch ($slot); " &
"finalized epoch: $last_finalized_epoch |" & "finalized epoch: $last_finalized_epoch |" &
"ETH: $attached_validators_balance" "ETH: $attached_validators_balance"
longform: "status-bar-contents" }: string longform: "status-bar-contents" }: string

View File

@ -45,7 +45,7 @@ if [ ! -f "${LAST_VALIDATOR}" ]; then
$BEACON_NODE_BIN makeDeposits \ $BEACON_NODE_BIN makeDeposits \
--quickstart-deposits="${NUM_VALIDATORS}" \ --quickstart-deposits="${NUM_VALIDATORS}" \
--deposits-dir="$VALIDATORS_DIR" --deposits-dir="$VALIDATORS_DIR" \
$DEPOSIT_WEB3_URL_ARG \ $DEPOSIT_WEB3_URL_ARG \
--deposit-contract="${DEPOSIT_CONTRACT_ADDRESS}" --deposit-contract="${DEPOSIT_CONTRACT_ADDRESS}"
fi fi