add activate_stake to stake_api (#4600)
This commit is contained in:
@ -53,7 +53,7 @@ pub fn create_genesis_block_with_leader(
|
||||
// passive bootstrap leader stake, duplicates above temporarily
|
||||
(
|
||||
staking_keypair.pubkey(),
|
||||
stake_state::create_delegate_stake_account(
|
||||
stake_state::create_stake_account(
|
||||
&voting_keypair.pubkey(),
|
||||
&vote_state,
|
||||
bootstrap_leader_stake_lamports,
|
||||
|
@ -100,7 +100,7 @@ mod tests {
|
||||
fn create_stake_account(stake: u64, vote_pubkey: &Pubkey) -> (Pubkey, Account) {
|
||||
(
|
||||
Pubkey::new_rand(),
|
||||
stake_state::create_delegate_stake_account(&vote_pubkey, &VoteState::default(), stake),
|
||||
stake_state::create_stake_account(&vote_pubkey, &VoteState::default(), stake),
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user