Enable fees in ci/localnet-sanity.sh (#4508)

automerge
This commit is contained in:
Michael Vines 2019-05-31 16:50:39 -07:00 committed by Grimes
parent d343c409e6
commit c0a161afe8
3 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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" \

View File

@ -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