mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 04:31:51 +00:00
Electra minor refactorings (#6839)
N/A
Fix some typos and other minor refactorings in the electra code. Thanks @jtraglia for bringing them up.
Note to reviewiers: 47803496de is the commit that needs looking into in detail. The rest are very minor refactorings
This commit is contained in:
@@ -1075,13 +1075,9 @@ fn process_pending_consolidations<E: EthSpec>(
|
||||
next_pending_consolidation.safe_add_assign(1)?;
|
||||
}
|
||||
|
||||
let new_pending_consolidations = List::try_from_iter(
|
||||
state
|
||||
.pending_consolidations()?
|
||||
.iter_from(next_pending_consolidation)?
|
||||
.cloned(),
|
||||
)?;
|
||||
*state.pending_consolidations_mut()? = new_pending_consolidations;
|
||||
state
|
||||
.pending_consolidations_mut()?
|
||||
.pop_front(next_pending_consolidation)?;
|
||||
|
||||
// the spec tests require we don't perform effective balance updates when testing pending_consolidations
|
||||
if !perform_effective_balance_updates {
|
||||
|
||||
Reference in New Issue
Block a user