Refactor RentDebits to use hashmap instead of vec

This commit is contained in:
Justin Starry
2021-10-30 01:47:38 +01:00
parent d2974fcefc
commit aaccba8377
3 changed files with 178 additions and 79 deletions

View File

@ -134,8 +134,7 @@ impl TransactionStatusService {
let post_token_balances = Some(post_token_balances);
let rewards = Some(
rent_debits
.0
.into_iter()
.into_unordered_rewards_iter()
.map(|(pubkey, reward_info)| Reward {
pubkey: pubkey.to_string(),
lamports: reward_info.lamports,