parent
d343c409e6
commit
c0a161afe8
|
@ -294,7 +294,10 @@ flag_error() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! $skipSetup; then
|
if ! $skipSetup; then
|
||||||
multinode-demo/setup.sh --hashes-per-tick auto
|
multinode-demo/setup.sh \
|
||||||
|
--hashes-per-tick auto \
|
||||||
|
--lamports-per-signature 1 \
|
||||||
|
|
||||||
else
|
else
|
||||||
verifyLedger
|
verifyLedger
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -97,7 +97,8 @@ setup_validator_accounts() {
|
||||||
echo "Vote and stake accounts have already been configured"
|
echo "Vote and stake accounts have already been configured"
|
||||||
else
|
else
|
||||||
# Fund the node with enough tokens to fund its Vote, Staking, and Storage accounts
|
# Fund the node with enough tokens to fund its Vote, Staking, and Storage accounts
|
||||||
$solana_wallet --keypair "$node_keypair_path" --url "http://$entrypoint_ip:8899" airdrop $((stake*2+2)) || return $?
|
declare fees=100 # TODO: No hardcoded transaction fees, fetch the current cluster fees
|
||||||
|
$solana_wallet --keypair "$node_keypair_path" --url "http://$entrypoint_ip:8899" airdrop $((stake*2+fees)) || return $?
|
||||||
|
|
||||||
# Fund the vote account from the node, with the node as the node_pubkey
|
# Fund the vote account from the node, with the node as the node_pubkey
|
||||||
$solana_wallet --keypair "$node_keypair_path" --url "http://$entrypoint_ip:8899" \
|
$solana_wallet --keypair "$node_keypair_path" --url "http://$entrypoint_ip:8899" \
|
||||||
|
|
|
@ -67,8 +67,8 @@ $solana_wallet "${entrypoint[@]}" airdrop 60
|
||||||
check_balance_output "60 lamports"
|
check_balance_output "60 lamports"
|
||||||
$solana_wallet "${entrypoint[@]}" airdrop 40
|
$solana_wallet "${entrypoint[@]}" airdrop 40
|
||||||
check_balance_output "100 lamports"
|
check_balance_output "100 lamports"
|
||||||
pay_and_confirm $garbage_address 99
|
pay_and_confirm $garbage_address 50
|
||||||
check_balance_output "1 lamport"
|
check_balance_output "lamports" # <-- exact number of lamports here depends on the current cluster fees
|
||||||
|
|
||||||
echo PASS
|
echo PASS
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue