mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 12:28:24 +00:00
Clear todos
This commit is contained in:
@@ -120,7 +120,8 @@ pub fn initialize_beacon_state_from_eth1<E: EthSpec>(
|
|||||||
let post = upgrade_state_to_electra(&mut state, Epoch::new(0), Epoch::new(0), spec)?;
|
let post = upgrade_state_to_electra(&mut state, Epoch::new(0), Epoch::new(0), spec)?;
|
||||||
state = post;
|
state = post;
|
||||||
|
|
||||||
// TODO(electra): do we need to iterate over an empty pending_deposits list here and increase balance?!
|
// TODO(electra): do we need to iterate over an empty pending_deposits list here and increase balance?
|
||||||
|
// in accordance with `initialize_beacon_state_from_eth1` function from the spec
|
||||||
|
|
||||||
// Remove intermediate Deneb fork from `state.fork`.
|
// Remove intermediate Deneb fork from `state.fork`.
|
||||||
state.fork_mut().previous_version = spec.electra_fork_version;
|
state.fork_mut().previous_version = spec.electra_fork_version;
|
||||||
|
|||||||
@@ -711,7 +711,6 @@ fn is_valid_switch_to_compounding_request<E: EthSpec>(
|
|||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
// Verify exits for source has not been initiated
|
// Verify exits for source has not been initiated
|
||||||
// TODO(pawan): this could be set by process_registry_updates too
|
|
||||||
if source_validator.exit_epoch != spec.far_future_epoch {
|
if source_validator.exit_epoch != spec.far_future_epoch {
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user