Remove airdrop from fullnode

This commit is contained in:
Michael Vines
2018-11-15 17:05:31 -08:00
parent 1576072edb
commit a0dd8617be
6 changed files with 94 additions and 91 deletions

View File

@ -60,6 +60,7 @@ if ((!self_setup)); then
echo " ${here}/setup.sh"
exit 1
}
validator_id_path=$SOLANA_CONFIG_PRIVATE_DIR/validator-id.json
validator_json_path=$SOLANA_CONFIG_VALIDATOR_DIR/validator.json
SOLANA_LEADER_CONFIG_DIR=$SOLANA_CONFIG_VALIDATOR_DIR/leader-config
else
@ -78,6 +79,22 @@ else
SOLANA_LEADER_CONFIG_DIR=$SOLANA_CONFIG_VALIDATOR_DIR/leader-config-x$$
fi
[[ -r $validator_id_path ]] || {
echo "$validator_id_path does not exist"
exit 1
}
# A fullnode requires 2 tokens to function:
# - one token to create an instance of the vote_program with
# - one second token to keep the node identity public key valid.
(
set -x
$solana_wallet \
--keypair "$validator_id_path" \
--network "$leader_address" \
airdrop 2
)
rsync_leader_url=$(rsync_url "$leader")
tune_networking