mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
Address clippy lints in tree-states (#4414)
* Address some clippy lints * Box errors to fix error size lint * Add Default impl for Validator * Address more clippy lints * Re-implement `check_state_diff` * Fix misc test compile errors
This commit is contained in:
@@ -400,7 +400,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
|
||||
.max_by_key(|f| f.finalized_checkpoint.epoch);
|
||||
|
||||
// Do a bit of state reconstruction first if required.
|
||||
if let Some(_) = reconstruction_notif {
|
||||
if reconstruction_notif.is_some() {
|
||||
let timer = std::time::Instant::now();
|
||||
|
||||
match db.reconstruct_historic_states(Some(BLOCKS_PER_RECONSTRUCTION)) {
|
||||
|
||||
@@ -65,7 +65,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
.zip(sync_aggregate.sync_committee_bits.iter())
|
||||
{
|
||||
let participant_balance = balances
|
||||
.get_mut(&validator_index)
|
||||
.get_mut(validator_index)
|
||||
.ok_or(BeaconChainError::SyncCommitteeRewardsSyncError)?;
|
||||
|
||||
if participant_bit {
|
||||
|
||||
Reference in New Issue
Block a user