mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 21:08:32 +00:00
Squashed reset to unstable
This commit is contained in:
committed by
Daniel Knopik
parent
b71b5f2231
commit
f61f0b654c
@@ -112,7 +112,7 @@ impl<E: EthSpec> BlsToExecutionChanges<E> {
|
||||
head_state
|
||||
.validators()
|
||||
.get(validator_index as usize)
|
||||
.map_or(true, |validator| {
|
||||
.is_none_or(|validator| {
|
||||
let prune = validator.has_execution_withdrawal_credential(spec)
|
||||
&& head_block
|
||||
.message()
|
||||
|
||||
@@ -767,7 +767,7 @@ fn prune_validator_hash_map<T, F, E: EthSpec>(
|
||||
&& head_state
|
||||
.validators()
|
||||
.get(validator_index as usize)
|
||||
.map_or(true, |validator| !prune_if(validator_index, validator))
|
||||
.is_none_or(|validator| !prune_if(validator_index, validator))
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ impl RewardCache {
|
||||
if self
|
||||
.initialization
|
||||
.as_ref()
|
||||
.map_or(true, |init| *init != new_init)
|
||||
.is_none_or(|init| *init != new_init)
|
||||
{
|
||||
self.update_previous_epoch_participation(state)
|
||||
.map_err(OpPoolError::RewardCacheUpdatePrevEpoch)?;
|
||||
|
||||
Reference in New Issue
Block a user