This reverts commit 11e6197a83
.
This commit is contained in:
@ -110,7 +110,7 @@ pub fn create_stake_account_with_lockup(
|
||||
custodian: &Pubkey,
|
||||
) -> Vec<Instruction> {
|
||||
vec![
|
||||
system_instruction::create_rent_exempted_account(
|
||||
system_instruction::create_account(
|
||||
from_pubkey,
|
||||
stake_pubkey,
|
||||
lamports,
|
||||
|
@ -87,13 +87,8 @@ pub fn create_account(
|
||||
lamports: u64,
|
||||
) -> Vec<Instruction> {
|
||||
let space = VoteState::size_of() as u64;
|
||||
let create_ix = system_instruction::create_rent_exempted_account(
|
||||
from_pubkey,
|
||||
vote_pubkey,
|
||||
lamports,
|
||||
space,
|
||||
&id(),
|
||||
);
|
||||
let create_ix =
|
||||
system_instruction::create_account(from_pubkey, vote_pubkey, lamports, space, &id());
|
||||
let init_ix = initialize_account(vote_pubkey, node_pubkey, commission);
|
||||
vec![create_ix, init_ix]
|
||||
}
|
||||
|
Reference in New Issue
Block a user