Versions in this module Expand all Collapse all v0 v0.0.0 Jul 4, 2022 Changes in this version + type Election struct + func New(validators *pos.Validators, frameToDecide idx.Frame, ...) *Election + func (el *Election) DebugStateHash() hash.Hash + func (el *Election) ProcessRoot(newRoot RootAndSlot) (*Res, error) + func (el *Election) Reset(validators *pos.Validators, frameToDecide idx.Frame) + func (el *Election) String(voters []RootAndSlot) string + type ForklessCauseFn func(a hash.Event, b hash.Event) bool + type GetFrameRootsFn func(f idx.Frame) []RootAndSlot + type Res struct + Atropos hash.Event + Frame idx.Frame + type RootAndSlot struct + ID hash.Event + Slot Slot + type Slot struct + Frame idx.Frame + Validator idx.ValidatorID