mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 19:02:42 +00:00
Implement tree states & hierarchical state DB
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#![deny(clippy::wildcard_imports)]
|
||||
|
||||
use crate::metrics;
|
||||
pub use epoch_processing_summary::EpochProcessingSummary;
|
||||
use errors::EpochProcessingError as Error;
|
||||
pub use justification_and_finalization_state::JustificationAndFinalizationState;
|
||||
@@ -32,6 +33,8 @@ pub fn process_epoch<T: EthSpec>(
|
||||
state: &mut BeaconState<T>,
|
||||
spec: &ChainSpec,
|
||||
) -> Result<EpochProcessingSummary<T>, Error> {
|
||||
let _timer = metrics::start_timer(&metrics::PROCESS_EPOCH_TIME);
|
||||
|
||||
// Verify that the `BeaconState` instantiation matches the fork at `state.slot()`.
|
||||
state
|
||||
.fork_name(spec)
|
||||
|
||||
Reference in New Issue
Block a user