diff --git a/ci/localnet-sanity.sh b/ci/localnet-sanity.sh index c188e0dd76..ee17742074 100755 --- a/ci/localnet-sanity.sh +++ b/ci/localnet-sanity.sh @@ -294,7 +294,10 @@ flag_error() { } if ! $skipSetup; then - multinode-demo/setup.sh --hashes-per-tick auto + multinode-demo/setup.sh \ + --hashes-per-tick auto \ + --lamports-per-signature 1 \ + else verifyLedger fi diff --git a/multinode-demo/fullnode.sh b/multinode-demo/fullnode.sh index a670287591..02af0583ff 100755 --- a/multinode-demo/fullnode.sh +++ b/multinode-demo/fullnode.sh @@ -97,7 +97,8 @@ setup_validator_accounts() { echo "Vote and stake accounts have already been configured" else # 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 $solana_wallet --keypair "$node_keypair_path" --url "http://$entrypoint_ip:8899" \ diff --git a/scripts/wallet-sanity.sh b/scripts/wallet-sanity.sh index 8e5c83651e..b37fcf4176 100755 --- a/scripts/wallet-sanity.sh +++ b/scripts/wallet-sanity.sh @@ -67,8 +67,8 @@ $solana_wallet "${entrypoint[@]}" airdrop 60 check_balance_output "60 lamports" $solana_wallet "${entrypoint[@]}" airdrop 40 check_balance_output "100 lamports" -pay_and_confirm $garbage_address 99 -check_balance_output "1 lamport" +pay_and_confirm $garbage_address 50 +check_balance_output "lamports" # <-- exact number of lamports here depends on the current cluster fees echo PASS exit 0