Add mining pool wallet commands (#4360)

automerge
This commit is contained in:
Michael Vines
2019-05-21 07:32:38 -07:00
committed by Grimes
parent ef0580bd3d
commit 6374e69a69
5 changed files with 256 additions and 35 deletions

View File

@ -411,11 +411,11 @@ impl LocalCluster {
let stake_account_pubkey = stake_account_keypair.pubkey();
let mut transaction = Transaction::new_signed_instructions(
&[from_account.as_ref()],
vec![stake_instruction::create_account(
stake_instruction::create_delegate_account(
&from_account.pubkey(),
&stake_account_pubkey,
amount,
)],
),
client.get_recent_blockhash().unwrap().0,
);

View File

@ -183,11 +183,11 @@ pub(crate) mod tests {
process_instructions(
bank,
&[from_account],
vec![stake_instruction::create_account(
stake_instruction::create_delegate_account(
&from_account.pubkey(),
&stake_account_pubkey,
amount,
)],
),
);
process_instructions(