Fix cache initialization in block rewards API (#4960)

This commit is contained in:
Michael Sproul
2023-12-01 11:06:27 +11:00
committed by GitHub
parent 9cdc4b989a
commit e880d9db50
3 changed files with 7 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ pub enum BeaconChainError {
SlotClockDidNotStart,
NoStateForSlot(Slot),
BeaconStateError(BeaconStateError),
HeadCacheError(EpochCacheError),
EpochCacheError(EpochCacheError),
DBInconsistent(String),
DBError(store::Error),
ForkChoiceError(ForkChoiceError),
@@ -246,6 +246,7 @@ easy_from_to!(StateAdvanceError, BeaconChainError);
easy_from_to!(BlockReplayError, BeaconChainError);
easy_from_to!(InconsistentFork, BeaconChainError);
easy_from_to!(AvailabilityCheckError, BeaconChainError);
easy_from_to!(EpochCacheError, BeaconChainError);
#[derive(Debug)]
pub enum BlockProductionError {