Versions in this module Expand all Collapse all v2 v2.0.1 Oct 5, 2021 Changes in this version + const NonExistentNode + type ForkChoice struct + func New(justifiedEpoch, finalizedEpoch types.Epoch, finalizedRoot [32]byte) *ForkChoice + func (f *ForkChoice) AncestorRoot(ctx context.Context, root [32]byte, slot types.Slot) ([]byte, error) + func (f *ForkChoice) HasNode(root [32]byte) bool + func (f *ForkChoice) HasParent(root [32]byte) bool + func (f *ForkChoice) Head(ctx context.Context, justifiedEpoch types.Epoch, justifiedRoot [32]byte, ...) ([32]byte, error) + func (f *ForkChoice) IsCanonical(root [32]byte) bool + func (f *ForkChoice) Node(root [32]byte) *Node + func (f *ForkChoice) Nodes() []*Node + func (f *ForkChoice) ProcessAttestation(ctx context.Context, validatorIndices []uint64, blockRoot [32]byte, ...) + func (f *ForkChoice) ProcessBlock(ctx context.Context, slot types.Slot, blockRoot, parentRoot, graffiti [32]byte, ...) error + func (f *ForkChoice) Prune(ctx context.Context, finalizedRoot [32]byte) error + func (f *ForkChoice) Store() *Store + type Node struct + func (n *Node) BestChild() uint64 + func (n *Node) BestDescendant() uint64 + func (n *Node) FinalizedEpoch() types.Epoch + func (n *Node) Graffiti() [32]byte + func (n *Node) JustifiedEpoch() types.Epoch + func (n *Node) Parent() uint64 + func (n *Node) Root() [32]byte + func (n *Node) Slot() types.Slot + func (n *Node) Weight() uint64 + type Store struct + func (s *Store) FinalizedEpoch() types.Epoch + func (s *Store) JustifiedEpoch() types.Epoch + func (s *Store) Nodes() []*Node + func (s *Store) NodesIndices() map[[32]byte]uint64 + func (s *Store) PruneThreshold() uint64 + type Vote struct Other modules containing this package github.com/prysmaticlabs/prysm github.com/prysmaticlabs/prysm/v3