pub fn apply_rewards( reward_state: RewardMerkleTree, validator: Validator<BLSPubKey>, ) -> Result<RewardMerkleTree>