Add bootstrap storage account to genesis (#4359)

* Add bootstrap storage account to genesis

* Add storage account genesis command to run.sh

* Update airdrop for all validators

* Remove unhelpful Short for arg

* Set the correct program owner
This commit is contained in:
Sagar Dhawan
2019-05-20 19:46:15 -07:00
committed by GitHub
parent f1e5edee14
commit d15e248cdb
4 changed files with 21 additions and 2 deletions

View File

@ -92,7 +92,8 @@ setup_vote_and_stake_accounts() {
if [[ -f "$node_keypair_path".configured ]]; then
echo "Vote and stake accounts have already been configured"
else
$solana_wallet --keypair "$node_keypair_path" --url "http://$entrypoint_ip:8899" airdrop $((stake*2+1)) || return $?
# 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 $?
# 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" \