Record vote account commission with voting/staking rewards and surface in RPC

(cherry picked from commit 4098af3b5b)
This commit is contained in:
Michael Vines
2021-07-10 23:18:42 -07:00
parent cba97d576a
commit e5d60bc56d
17 changed files with 90 additions and 26 deletions

View File

@@ -8331,6 +8331,7 @@ pub mod tests {
lamports: 42 + i,
post_balance: std::u64::MAX,
reward_type: Some(RewardType::Fee),
commission: None,
})
.collect();
let protobuf_rewards: generated::Rewards = rewards.into();
@@ -8397,6 +8398,7 @@ pub mod tests {
lamports: -42,
post_balance: 42,
reward_type: Some(RewardType::Rent),
commission: None,
}]),
};
let deprecated_status: StoredTransactionStatusMeta = status.clone().into();