Refactor RentDebits to use hashmap instead of vec (v1.8 backport) (#21176)

* Refactor `RentDebits` to use hashmap instead of vec (v1.8 backport)

* Fix rent debits test (#21177)
This commit is contained in:
Justin Starry
2021-11-05 08:52:14 +00:00
committed by GitHub
parent 56fc58a2b5
commit 89b2a3d0ae
3 changed files with 162 additions and 79 deletions

View File

@@ -132,8 +132,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,