Fix offline stakes payer (#7385)

This commit is contained in:
Jack May
2019-12-09 23:11:04 -08:00
committed by GitHub
parent 5e0a69f68b
commit 19ecce1e32
7 changed files with 382 additions and 31 deletions

View File

@@ -419,7 +419,12 @@ pub fn process_ping(
let transaction =
system_transaction::transfer(&config.keypair, &to, lamports, recent_blockhash);
check_account_for_fee(rpc_client, config, &fee_calculator, &transaction.message)?;
check_account_for_fee(
rpc_client,
&config.keypair.pubkey(),
&fee_calculator,
&transaction.message,
)?;
match rpc_client.send_transaction(&transaction) {
Ok(signature) => {