plumb some rent (#5610)

* plumb some rent

* nits

* fixups

* fixups

* fixups
This commit is contained in:
Rob Walker
2019-08-23 14:04:53 -07:00
committed by GitHub
parent 9b8d59d2e9
commit 0ffe7a9c8f
19 changed files with 385 additions and 143 deletions

View File

@ -760,7 +760,7 @@ mod tests {
lamports: 1,
data: bincode::serialize(&LibraAccountState::create_unallocated()).unwrap(),
owner: id(),
executable: false,
..Account::default()
};
Self::new(key, account)
}
@ -768,9 +768,8 @@ mod tests {
pub fn create_genesis(amount: u64) -> Self {
let account = Account {
lamports: 1,
data: vec![],
owner: id(),
executable: false,
..Account::default()
};
let mut genesis = Self::new(Pubkey::default(), account);
genesis.account.data =

View File

@ -547,10 +547,8 @@ mod tests {
let mut account = StorageAccount {
id: Pubkey::default(),
account: &mut Account {
lamports: 0,
data: vec![],
owner: id(),
executable: false,
..Account::default()
},
};
let segment_index = 0;