Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Jul 22, 2022
1 parent 58e8134 commit be4955e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use beacon_chain::{
observed_operations::ObservationOutcome,
sync_committee_verification::{self, Error as SyncCommitteeError},
validator_monitor::get_block_delay_ms,
BeaconChainError, BeaconChainTypes, BlockError, CountUnrealized, ExecutionPayloadError,
ForkChoiceError, GossipVerifiedBlock,
BeaconChainError, BeaconChainTypes, BlockError, CountUnrealized, ForkChoiceError,
GossipVerifiedBlock,
};
use lighthouse_network::{Client, MessageAcceptance, MessageId, PeerAction, PeerId, ReportSource};
use slog::{crit, debug, error, info, trace, warn};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ impl<T: EthSpec> JustificationAndFinalizationState<T> {
let current_epoch = state.current_epoch();
Self {
previous_epoch,
previous_epoch_target_root: state
.get_block_root_at_epoch(previous_epoch)
.map(|root| *root),
previous_epoch_target_root: state.get_block_root_at_epoch(previous_epoch).copied(),
current_epoch,
current_epoch_target_root: state
.get_block_root_at_epoch(current_epoch)
.map(|root| *root),
current_epoch_target_root: state.get_block_root_at_epoch(current_epoch).copied(),
previous_justified_checkpoint: state.previous_justified_checkpoint(),
current_justified_checkpoint: state.current_justified_checkpoint(),
finalized_checkpoint: state.finalized_checkpoint(),
Expand Down

0 comments on commit be4955e

Please sign in to comment.