From dcbb1dca8a349c4ae347976d7aab4ab52fc0e309 Mon Sep 17 00:00:00 2001 From: sakridge Date: Mon, 23 Nov 2020 13:01:00 -0800 Subject: [PATCH] Primordial stake debug (#13756) --- net/net.sh | 1 + net/remote/remote-node.sh | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/net/net.sh b/net/net.sh index 196bb53305..4aae340cc4 100755 --- a/net/net.sh +++ b/net/net.sh @@ -1005,6 +1005,7 @@ if [[ -n "$maybeWaitForSupermajority" && -n "$maybeWarpSlot" ]]; then fi fi +echo "net.sh: Primordial stakes: $extraPrimordialStakes" if [[ $extraPrimordialStakes -gt 0 ]]; then # Extra primoridial stakes require that all of the validators start at # the same time. Force async init and wait for supermajority here. diff --git a/net/remote/remote-node.sh b/net/remote/remote-node.sh index e2cc5594cb..b7017116bf 100755 --- a/net/remote/remote-node.sh +++ b/net/remote/remote-node.sh @@ -225,6 +225,7 @@ EOF if [[ -f net/keypairs/bootstrap-validator-identity.json ]]; then export BOOTSTRAP_VALIDATOR_IDENTITY_KEYPAIR=net/keypairs/bootstrap-validator-identity.json fi + echo "remote-node.sh: Primordial stakes: $extraPrimordialStakes" if [[ "$extraPrimordialStakes" -gt 0 ]]; then if [[ "$extraPrimordialStakes" -gt "$numNodes" ]]; then echo "warning: extraPrimordialStakes($extraPrimordialStakes) clamped to numNodes($numNodes)" @@ -419,8 +420,11 @@ EOF args+=(--keypair config/validator-identity.json) fi - if [[ ${#extraPrimordialStakes} -eq 0 ]]; then + if [[ ${extraPrimordialStakes} -eq 0 ]]; then + echo "0 Primordial stakes, staking with $internalNodesStakeLamports" multinode-demo/delegate-stake.sh "${args[@]}" "$internalNodesStakeLamports" + else + echo "Skipping staking with extra stakes: ${extraPrimordialStakes}" fi fi ;;