Merge create-stake-account into delegate-stake (#5280)

This commit is contained in:
Michael Vines
2019-07-25 16:53:43 -07:00
committed by GitHub
parent 19e4f70244
commit d1eff5d607
2 changed files with 27 additions and 100 deletions

View File

@ -105,15 +105,7 @@ setup_validator_accounts() {
create-vote-account "$vote_pubkey" "$identity_pubkey" 1 --commission 127
) || return $?
echo "Fund the stake account from the node's identity pubkey"
(
set -x
$solana_wallet --keypair "$identity_keypair_path" --url "http://$entrypoint_ip:8899" \
create-stake-account "$stake_pubkey" "$stake_lamports"
) || return $?
echo "Delegate the stake account to the node's vote account"
# transaction must be signed by the stake_keypair
(
set -x
$solana_wallet --keypair "$identity_keypair_path" --url "http://$entrypoint_ip:8899" \