Versions in this module Expand all Collapse all v1 v1.8.4 Feb 22, 2022 v1.8.3 Feb 22, 2022 Changes in this version + var ErrNotOracle = errors.New("block isn't an oracle") + func SortTestBlocks(blocks []*TestBlock) + type Block interface + Bytes func() []byte + Height func() uint64 + Parent func() ids.ID + Timestamp func() time.Time + Verify func() error + type Consensus interface + Add func(Block) error + Decided func(Block) bool + Finalized func() bool + HealthCheck func() (interface{}, error) + Initialize func(ctx *snow.ConsensusContext, params snowball.Parameters, lastAcceptedID ids.ID, ...) error + IsPreferred func(Block) bool + NumProcessing func() int + Parameters func() snowball.Parameters + Preference func() ids.ID + Processing func(ids.ID) bool + RecordPoll func(ids.Bag) error + type Factory interface + New func() Consensus + type OracleBlock interface + Options func() ([2]Block, error) + type TestBlock struct + BytesV []byte + HeightV uint64 + ParentV ids.ID + TimestampV time.Time + VerifyV error + func (b *TestBlock) Bytes() []byte + func (b *TestBlock) Height() uint64 + func (b *TestBlock) Parent() ids.ID + func (b *TestBlock) Timestamp() time.Time + func (b *TestBlock) Verify() error + type Topological struct + func (ts *Topological) Add(blk Block) error + func (ts *Topological) Decided(blk Block) bool + func (ts *Topological) Finalized() bool + func (ts *Topological) HealthCheck() (interface{}, error) + func (ts *Topological) Initialize(ctx *snow.ConsensusContext, params snowball.Parameters, rootID ids.ID, ...) error + func (ts *Topological) IsPreferred(blk Block) bool + func (ts *Topological) NumProcessing() int + func (ts *Topological) Parameters() snowball.Parameters + func (ts *Topological) Preference() ids.ID + func (ts *Topological) Processing(blkID ids.ID) bool + func (ts *Topological) RecordPoll(voteBag ids.Bag) error + type TopologicalFactory struct + func (TopologicalFactory) New() Consensus