solana transfer now requires --allow-unfunded-recipient if the recipient doesn't exist (bp #16060) (#16067)

* transfer now requires --allow-unfunded-recipient if the recipient doesn't exist

(cherry picked from commit 3dff5c9dee)

* Avoid RPC in `--sign-only` mode

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
(cherry picked from commit 6271665ba6)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2021-03-23 03:54:42 +00:00
committed by GitHub
parent 7ac3c9ec76
commit 64ce4a6203
8 changed files with 108 additions and 7 deletions

View File

@@ -102,7 +102,9 @@ if ((airdrops_enabled)); then
echo "--keypair argument must be provided"
exit 1
fi
$solana_cli "${common_args[@]}" --keypair "$SOLANA_CONFIG_DIR/faucet.json" transfer "$keypair" "$stake_sol"
$solana_cli \
"${common_args[@]}" --keypair "$SOLANA_CONFIG_DIR/faucet.json" \
transfer --allow-unfunded-recipient "$keypair" "$stake_sol"
fi
if [[ -n $keypair ]]; then

View File

@@ -274,7 +274,9 @@ setup_validator_accounts() {
echo "Adding $node_sol to validator identity account:"
(
set -x
$solana_cli --keypair "$SOLANA_CONFIG_DIR/faucet.json" --url "$rpc_url" transfer "$identity" "$node_sol"
$solana_cli \
--keypair "$SOLANA_CONFIG_DIR/faucet.json" --url "$rpc_url" \
transfer --allow-unfunded-recipient "$identity" "$node_sol"
) || return $?
fi