Versions in this module Expand all Collapse all v0 v0.0.4 Jan 15, 2025 v0.0.1 Jan 15, 2025 Changes in this version + var ErrUnknownCommonAncestor = errors.New("unknown common ancestor") + type AttestationProcessor interface + ProcessAttestation func(context.Context, []uint64, [32]byte, primitives.Epoch) + type BalancesByRooter func(context.Context, [32]byte) ([]uint64, error) + type BlockProcessor interface + InsertChain func(context.Context, []*forkchoicetypes.BlockAndCheckpoints) error + InsertNode func(context.Context, state.BeaconState, [32]byte) error + type ForkChoicer interface + Lock func() + RLock func() + RUnlock func() + Unlock func() + type Getter interface + AncestorRoot func(ctx context.Context, root [32]byte, slot primitives.Slot) ([32]byte, error) + CommonAncestor func(ctx context.Context, root1 [32]byte, root2 [32]byte) ([32]byte, primitives.Slot, error) + FinalizedCheckpoint func() *forkchoicetypes.Checkpoint + FinalizedPayloadBlockHash func() [32]byte + ForkChoiceDump func(context.Context) (*v1.ForkChoiceDump, error) + HasNode func([32]byte) bool + HighestReceivedBlockSlot func() primitives.Slot + IsCanonical func(root [32]byte) bool + IsOptimistic func(root [32]byte) (bool, error) + IsViableForCheckpoint func(*forkchoicetypes.Checkpoint) (bool, error) + JustifiedCheckpoint func() *forkchoicetypes.Checkpoint + JustifiedPayloadBlockHash func() [32]byte + LastRoot func(primitives.Epoch) [32]byte + NodeCount func() int + PreviousJustifiedCheckpoint func() *forkchoicetypes.Checkpoint + ProposerBoost func() [fieldparams.RootLength]byte + ReceivedBlocksLastEpoch func() (uint64, error) + ShouldOverrideFCU func() bool + Slot func([32]byte) (primitives.Slot, error) + Tips func() ([][32]byte, []primitives.Slot) + UnrealizedJustifiedPayloadBlockHash func() [32]byte + Weight func(root [32]byte) (uint64, error) + type HeadRetriever interface + CachedHeadRoot func() [32]byte + GetProposerHead func() [32]byte + Head func(context.Context) ([32]byte, error) + type Setter interface + InsertSlashedIndex func(context.Context, primitives.ValidatorIndex) + NewSlot func(context.Context, primitives.Slot) error + SetBalancesByRooter func(BalancesByRooter) + SetGenesisTime func(uint64) + SetOptimisticToInvalid func(context.Context, [fieldparams.RootLength]byte, [fieldparams.RootLength]byte, ...) ([][32]byte, error) + SetOptimisticToValid func(context.Context, [fieldparams.RootLength]byte) error + SetOriginRoot func([32]byte) + UpdateFinalizedCheckpoint func(*forkchoicetypes.Checkpoint) error + UpdateJustifiedCheckpoint func(context.Context, *forkchoicetypes.Checkpoint) error