Skip to content

Commit

Permalink
Iterates on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoAlice committed Apr 23, 2024
1 parent 2d05ee7 commit dab86ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Cargo.lock
consensus-spec-tests

.env
.vscode/
5 changes: 3 additions & 2 deletions ethereum-consensus/src/electra/epoch_processing.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::electra::{
compute_activation_exit_epoch, get_current_epoch, initiate_validator_exit, is_active_validator,
is_eligible_for_activation, is_eligible_for_activation_queue, BeaconState, Context, Result,
is_eligible_for_activation, is_eligible_for_activation_queue, BeaconState, Context,
};
use std::error::Error;

pub fn process_registry_updates<
const SLOTS_PER_HISTORICAL_ROOT: usize,
Expand Down Expand Up @@ -34,7 +35,7 @@ pub fn process_registry_updates<
PENDING_CONSOLIDATIONS_LIMIT,
>,
context: &Context,
) -> Result<()> {
) -> std::result::Result<(), Box<dyn Error>> {
let current_epoch = get_current_epoch(state, context);
for i in 0..state.validators.len() {
let validator = &mut state.validators[i];
Expand Down

0 comments on commit dab86ac

Please sign in to comment.