Avoid RPC in --sign-only mode

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
This commit is contained in:
Michael Vines
2021-03-22 18:05:12 -07:00
committed by mergify[bot]
parent 3dff5c9dee
commit 6271665ba6

View File

@ -1157,7 +1157,7 @@ fn process_transfer(
let (recent_blockhash, fee_calculator) = let (recent_blockhash, fee_calculator) =
blockhash_query.get_blockhash_and_fee_calculator(rpc_client, config.commitment)?; 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 let recipient_balance = rpc_client
.get_balance_with_commitment(to, config.commitment)? .get_balance_with_commitment(to, config.commitment)?
.value; .value;