turn on rent (#7368)

* turn on rent

* add rent exempt balances for bootstrap accounts

* use Rent::free() when not testing rent
This commit is contained in:
Rob Walker
2019-12-09 21:56:43 -08:00
committed by GitHub
parent ed9cf3566c
commit 39cd6dff7d
12 changed files with 89 additions and 48 deletions

View File

@ -1393,7 +1393,7 @@ mod tests {
&Lockup::default(),
&Rent {
lamports_per_byte_year: 42,
..Rent::default()
..Rent::free()
},
),
Err(InstructionError::InsufficientFunds)
@ -1407,7 +1407,7 @@ mod tests {
epoch: 1,
custodian
},
&Rent::default(),
&Rent::free(),
),
Ok(())
);
@ -1431,7 +1431,7 @@ mod tests {
stake_keyed_account.initialize(
&Authorized::default(),
&Lockup::default(),
&Rent::default()
&Rent::free()
),
Err(InstructionError::InvalidAccountData)
);
@ -1559,7 +1559,7 @@ mod tests {
epoch: 0,
custodian,
},
&Rent::default(),
&Rent::free(),
)
.unwrap();