From 6271665ba64c8a2601bf7e672d08015dc1d3da64 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 22 Mar 2021 18:05:12 -0700 Subject: [PATCH] Avoid RPC in `--sign-only` mode Co-authored-by: Trent Nelson --- cli/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli.rs b/cli/src/cli.rs index 8ec777c7f1..b5df55e70e 100644 --- a/cli/src/cli.rs +++ b/cli/src/cli.rs @@ -1157,7 +1157,7 @@ fn process_transfer( let (recent_blockhash, fee_calculator) = blockhash_query.get_blockhash_and_fee_calculator(rpc_client, config.commitment)?; - if !allow_unfunded_recipient { + if !sign_only && !allow_unfunded_recipient { let recipient_balance = rpc_client .get_balance_with_commitment(to, config.commitment)? .value;