add authorities to stake init (#6104)

* add authorities to stake init

* fixups

* code review
This commit is contained in:
Rob Walker
2019-09-26 13:29:29 -07:00
committed by GitHub
parent 50bbe34b66
commit a964570b1a
10 changed files with 371 additions and 213 deletions

View File

@@ -21,7 +21,10 @@ use solana_sdk::{
system_transaction,
transaction::Transaction,
};
use solana_stake_api::{config as stake_config, stake_instruction, stake_state::StakeState};
use solana_stake_api::{
config as stake_config, stake_instruction,
stake_state::{Authorized as StakeAuthorized, StakeState},
};
use solana_storage_api::{storage_contract, storage_instruction};
use solana_vote_api::{
vote_instruction,
@@ -462,6 +465,7 @@ impl LocalCluster {
&stake_account_pubkey,
&vote_account_pubkey,
amount,
&StakeAuthorized::auto(&stake_account_pubkey),
),
client.get_recent_blockhash().unwrap().0,
);