Permit paying oneself (#10337) (#10341)

automerge
This commit is contained in:
mergify[bot]
2020-05-31 13:18:34 -07:00
committed by GitHub
parent c344a878b6
commit 640bb9cb95
4 changed files with 67 additions and 99 deletions

View File

@@ -1584,11 +1584,6 @@ fn process_transfer(
) -> ProcessResult {
let from = config.signers[from];
check_unique_pubkeys(
(&from.pubkey(), "cli keypair".to_string()),
(to, "to".to_string()),
)?;
let (recent_blockhash, fee_calculator) =
blockhash_query.get_blockhash_and_fee_calculator(rpc_client)?;
let ixs = vec![system_instruction::transfer(&from.pubkey(), to, lamports)];