Documentation ¶
Index ¶
- type CanonicalChecker
- type CurrentSlotter
- type Replayer
- type ReplayerBuilder
- func (b *ReplayerBuilder) ReplayerForSlot(target primitives.Slot) stategen.Replayer
- func (b *ReplayerBuilder) SetMockSlotError(s primitives.Slot, e error)
- func (b *ReplayerBuilder) SetMockState(s state.BeaconState)
- func (b *ReplayerBuilder) SetMockStateForSlot(s state.BeaconState, slot primitives.Slot)
- type ReplayerBuilderOption
- type StateManager
- func (*StateManager) ActiveNonSlashedBalancesByRoot(_ context.Context, _ [32]byte) ([]uint64, error)
- func (m *StateManager) AddStateForRoot(state state.BeaconState, blockRoot [32]byte)
- func (m *StateManager) AddStateForSlot(state state.BeaconState, slot primitives.Slot)
- func (m *StateManager) DeleteStateFromCaches(context.Context, [32]byte) error
- func (_ *StateManager) DisableSaveHotStateToDB(_ context.Context) error
- func (_ *StateManager) EnableSaveHotStateToDB(_ context.Context)
- func (_ *StateManager) ForceCheckpoint(_ context.Context, _ []byte) error
- func (_ *StateManager) HasState(_ context.Context, _ [32]byte) (bool, error)
- func (_ *StateManager) MigrateToCold(_ context.Context, _ [32]byte) error
- func (_ *StateManager) Resume(_ context.Context, _ state.BeaconState) (state.BeaconState, error)
- func (_ *StateManager) SaveFinalizedState(_ primitives.Slot, _ [32]byte, _ state.BeaconState)
- func (_ *StateManager) SaveState(_ context.Context, _ [32]byte, _ state.BeaconState) error
- func (m *StateManager) StateByRoot(_ context.Context, blockRoot [32]byte) (state.BeaconState, error)
- func (_ *StateManager) StateByRootIfCachedNoCopy(_ [32]byte) state.BeaconState
- func (_ *StateManager) StateByRootInitialSync(_ context.Context, _ [32]byte) (state.BeaconState, error)
- func (m *StateManager) StateBySlot(_ context.Context, slot primitives.Slot) (state.BeaconState, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanonicalChecker ¶ added in v4.2.0
func (*CanonicalChecker) IsCanonical ¶ added in v4.2.0
type CurrentSlotter ¶ added in v4.2.0
type CurrentSlotter struct {
Slot primitives.Slot
}
func (*CurrentSlotter) CurrentSlot ¶ added in v4.2.0
func (c *CurrentSlotter) CurrentSlot() primitives.Slot
type Replayer ¶ added in v4.2.0
type Replayer struct { State state.BeaconState Err error }
func (*Replayer) ReplayBlocks ¶ added in v4.2.0
func (*Replayer) ReplayToSlot ¶ added in v4.2.0
func (m *Replayer) ReplayToSlot(_ context.Context, _ primitives.Slot) (state.BeaconState, error)
type ReplayerBuilder ¶ added in v4.2.0
type ReplayerBuilder struct {
// contains filtered or unexported fields
}
func NewReplayerBuilder ¶ added in v4.2.0
func NewReplayerBuilder(opt ...ReplayerBuilderOption) *ReplayerBuilder
func (*ReplayerBuilder) ReplayerForSlot ¶ added in v4.2.0
func (b *ReplayerBuilder) ReplayerForSlot(target primitives.Slot) stategen.Replayer
func (*ReplayerBuilder) SetMockSlotError ¶ added in v4.2.0
func (b *ReplayerBuilder) SetMockSlotError(s primitives.Slot, e error)
func (*ReplayerBuilder) SetMockState ¶ added in v4.2.0
func (b *ReplayerBuilder) SetMockState(s state.BeaconState)
func (*ReplayerBuilder) SetMockStateForSlot ¶ added in v4.2.0
func (b *ReplayerBuilder) SetMockStateForSlot(s state.BeaconState, slot primitives.Slot)
type ReplayerBuilderOption ¶ added in v4.2.0
type ReplayerBuilderOption func(*ReplayerBuilder)
func WithMockState ¶
func WithMockState(s state.BeaconState) ReplayerBuilderOption
type StateManager ¶ added in v4.2.0
type StateManager struct { StatesByRoot map[[32]byte]state.BeaconState StatesBySlot map[primitives.Slot]state.BeaconState }
StateManager is a fake implementation of StateManager.
func (*StateManager) ActiveNonSlashedBalancesByRoot ¶ added in v4.2.0
func (*StateManager) ActiveNonSlashedBalancesByRoot(_ context.Context, _ [32]byte) ([]uint64, error)
ActiveNonSlashedBalancesByRoot --
func (*StateManager) AddStateForRoot ¶ added in v4.2.0
func (m *StateManager) AddStateForRoot(state state.BeaconState, blockRoot [32]byte)
AddStateForRoot --
func (*StateManager) AddStateForSlot ¶ added in v4.2.0
func (m *StateManager) AddStateForSlot(state state.BeaconState, slot primitives.Slot)
AddStateForSlot --
func (*StateManager) DeleteStateFromCaches ¶ added in v4.2.0
func (m *StateManager) DeleteStateFromCaches(context.Context, [32]byte) error
DeleteStateFromCaches --
func (*StateManager) DisableSaveHotStateToDB ¶ added in v4.2.0
func (_ *StateManager) DisableSaveHotStateToDB(_ context.Context) error
DisableSaveHotStateToDB --
func (*StateManager) EnableSaveHotStateToDB ¶ added in v4.2.0
func (_ *StateManager) EnableSaveHotStateToDB(_ context.Context)
EnableSaveHotStateToDB --
func (*StateManager) ForceCheckpoint ¶ added in v4.2.0
func (_ *StateManager) ForceCheckpoint(_ context.Context, _ []byte) error
ForceCheckpoint --
func (*StateManager) MigrateToCold ¶ added in v4.2.0
func (_ *StateManager) MigrateToCold(_ context.Context, _ [32]byte) error
MigrateToCold --
func (*StateManager) Resume ¶ added in v4.2.0
func (_ *StateManager) Resume(_ context.Context, _ state.BeaconState) (state.BeaconState, error)
Resume --
func (*StateManager) SaveFinalizedState ¶ added in v4.2.0
func (_ *StateManager) SaveFinalizedState(_ primitives.Slot, _ [32]byte, _ state.BeaconState)
SaveFinalizedState --
func (*StateManager) SaveState ¶ added in v4.2.0
func (_ *StateManager) SaveState(_ context.Context, _ [32]byte, _ state.BeaconState) error
SaveState --
func (*StateManager) StateByRoot ¶ added in v4.2.0
func (m *StateManager) StateByRoot(_ context.Context, blockRoot [32]byte) (state.BeaconState, error)
StateByRoot --
func (*StateManager) StateByRootIfCachedNoCopy ¶ added in v4.2.0
func (_ *StateManager) StateByRootIfCachedNoCopy(_ [32]byte) state.BeaconState
StateByRootIfCachedNoCopy --
func (*StateManager) StateByRootInitialSync ¶ added in v4.2.0
func (_ *StateManager) StateByRootInitialSync(_ context.Context, _ [32]byte) (state.BeaconState, error)
StateByRootInitialSync --
func (*StateManager) StateBySlot ¶ added in v4.2.0
func (m *StateManager) StateBySlot(_ context.Context, slot primitives.Slot) (state.BeaconState, error)
StateBySlot --
Click to show internal directories.
Click to hide internal directories.