Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Oct 5, 2023
1 parent 518c6a0 commit 0a70967
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions beacon_node/beacon_chain/src/beacon_block_reward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,15 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
BeaconChainError::BlockRewardAttestationError
})?
} else {
self.compute_beacon_block_attestation_reward_altair(
block,
state,
)
.map_err(|e| {
error!(
self.log,
"Error calculating altair block attestation reward";
"error" => ?e
);
BeaconChainError::BlockRewardAttestationError
})?
self.compute_beacon_block_attestation_reward_altair(block, state)
.map_err(|e| {
error!(
self.log,
"Error calculating altair block attestation reward";
"error" => ?e
);
BeaconChainError::BlockRewardAttestationError
})?
};

let total_reward = sync_aggregate_reward
Expand Down Expand Up @@ -210,7 +207,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
for (flag_index, &weight) in PARTICIPATION_FLAG_WEIGHTS.iter().enumerate() {
let mut epoch_participation =
state.get_epoch_participation(data.target.epoch)?.clone();

let validator_participation = epoch_participation
.get_mut(index)
.ok_or(BeaconStateError::ParticipationOutOfBounds(index))?;
Expand Down

0 comments on commit 0a70967

Please sign in to comment.