Primordial stake debug (#13756)
This commit is contained in:
@ -1005,6 +1005,7 @@ if [[ -n "$maybeWaitForSupermajority" && -n "$maybeWarpSlot" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "net.sh: Primordial stakes: $extraPrimordialStakes"
|
||||||
if [[ $extraPrimordialStakes -gt 0 ]]; then
|
if [[ $extraPrimordialStakes -gt 0 ]]; then
|
||||||
# Extra primoridial stakes require that all of the validators start at
|
# Extra primoridial stakes require that all of the validators start at
|
||||||
# the same time. Force async init and wait for supermajority here.
|
# the same time. Force async init and wait for supermajority here.
|
||||||
|
@ -225,6 +225,7 @@ EOF
|
|||||||
if [[ -f net/keypairs/bootstrap-validator-identity.json ]]; then
|
if [[ -f net/keypairs/bootstrap-validator-identity.json ]]; then
|
||||||
export BOOTSTRAP_VALIDATOR_IDENTITY_KEYPAIR=net/keypairs/bootstrap-validator-identity.json
|
export BOOTSTRAP_VALIDATOR_IDENTITY_KEYPAIR=net/keypairs/bootstrap-validator-identity.json
|
||||||
fi
|
fi
|
||||||
|
echo "remote-node.sh: Primordial stakes: $extraPrimordialStakes"
|
||||||
if [[ "$extraPrimordialStakes" -gt 0 ]]; then
|
if [[ "$extraPrimordialStakes" -gt 0 ]]; then
|
||||||
if [[ "$extraPrimordialStakes" -gt "$numNodes" ]]; then
|
if [[ "$extraPrimordialStakes" -gt "$numNodes" ]]; then
|
||||||
echo "warning: extraPrimordialStakes($extraPrimordialStakes) clamped to numNodes($numNodes)"
|
echo "warning: extraPrimordialStakes($extraPrimordialStakes) clamped to numNodes($numNodes)"
|
||||||
@ -419,8 +420,11 @@ EOF
|
|||||||
args+=(--keypair config/validator-identity.json)
|
args+=(--keypair config/validator-identity.json)
|
||||||
fi
|
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"
|
multinode-demo/delegate-stake.sh "${args[@]}" "$internalNodesStakeLamports"
|
||||||
|
else
|
||||||
|
echo "Skipping staking with extra stakes: ${extraPrimordialStakes}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user