pub fn retain_v2_reward_accounts(
state: &RewardMerkleTreeV2,
accounts: impl IntoIterator<Item = RewardAccountV2>,
) -> Result<RewardMerkleTreeV2>
Expand description
Get a partial snapshot of the given reward state, which contains only the specified accounts.
Fails if one of the requested accounts is not represented in the original state
.