change store to store_account (#4689)

This commit is contained in:
Rob Walker 2019-06-14 13:34:15 -07:00 committed by GitHub
parent 4c6a6d63bf
commit 3fe5f886d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -475,7 +475,7 @@ impl Bank {
.unwrap()
.create_mining_pool(epoch, validator_rewards);
self.store(
self.store_account(
&Pubkey::new(
hashv(&[
blockhash.as_ref(),
@ -1474,16 +1474,16 @@ mod tests {
crate::stakes::tests::create_staked_node_accounts(1_0000);
// set up stakes and vote accounts
bank.store(&stake.0, &stake.1);
bank.store_account(&stake.0, &stake.1);
// generate some rewards
let mut vote_state = VoteState::from(&vote_account).unwrap();
for i in 0..MAX_LOCKOUT_HISTORY + 42 {
vote_state.process_slot_vote_unchecked(i as u64);
vote_state.to(&mut vote_account).unwrap();
bank.store(&vote_id, &vote_account);
bank.store_account(&vote_id, &vote_account);
}
bank.store(&vote_id, &vote_account);
bank.store_account(&vote_id, &vote_account);
// put a child bank in epoch 1, which calls update_rewards()...
let bank1 = Bank::new_from_parent(