Add optimisation for epoch processing

This commit is contained in:
Paul Hauner
2019-03-10 17:49:06 +11:00
parent 9cc8e2598f
commit f27b62d410
2 changed files with 24 additions and 2 deletions

View File

@@ -8,6 +8,11 @@ pub enum EpochProcessingError {
NoRandaoSeed,
PreviousTotalBalanceIsZero,
InclusionDistanceZero,
/// Unable to get the inclusion distance for a validator that should have an inclusion
/// distance. This indicates an internal inconsistency.
///
/// (validator_index)
InclusionSlotsInconsistent(usize),
BeaconStateError(BeaconStateError),
InclusionError(InclusionError),
}