Revert "require stake, vote and executable accounts to be rent exempt (#5928)" (#6005)

This reverts commit 11e6197a83.
This commit is contained in:
Michael Vines
2019-09-20 14:10:39 -07:00
committed by GitHub
parent 558a362c46
commit a60a3efc1a
11 changed files with 18 additions and 199 deletions

View File

@ -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,

View File

@ -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]
}