require stake, vote and executable accounts to be rent exempt (#5928)
* require vote account to be exempt * make stake account rent exempt * add rent exempted system instruction * use rent exemption instruction in vote and stake api * use rent exempted account while creating executable account * updating chacha golden hash as instruction data has changed * rent will be initialized for genesis bank too
This commit is contained in:
@ -871,7 +871,7 @@ fn process_deploy(
|
||||
// Build transactions to calculate fees
|
||||
let mut messages: Vec<&Message> = Vec::new();
|
||||
let (blockhash, fee_calculator) = rpc_client.get_recent_blockhash()?;
|
||||
let mut create_account_tx = system_transaction::create_account(
|
||||
let mut create_account_tx = system_transaction::create_rent_exempted_account(
|
||||
&config.keypair,
|
||||
&program_id.pubkey(),
|
||||
blockhash,
|
||||
|
Reference in New Issue
Block a user