Versions in this module Expand all Collapse all v1 v1.4.9 Jul 5, 2021 v1.4.5 Jul 5, 2021 Changes in this version + func SortTestBlocks(blocks []*TestBlock) + type Block interface + Bytes func() []byte + Height func() uint64 + Parent func() Block + Verify func() error + type Consensus interface + AcceptedOrProcessing func(Block) bool + Add func(Block) error + DecidedOrProcessing func(Block) bool + Finalized func() bool + HealthCheck func() (interface{}, error) + Initialize func(ctx *snow.Context, params snowball.Parameters, lastAcceptedID ids.ID, ...) error + IsPreferred func(Block) bool + NumProcessing func() int + Parameters func() snowball.Parameters + Preference func() ids.ID + RecordPoll func(ids.Bag) error + type Factory interface + New func() Consensus + type TestBlock struct + BytesV []byte + HeightV uint64 + ParentV Block + VerifyV error + func (b *TestBlock) Bytes() []byte + func (b *TestBlock) Height() uint64 + func (b *TestBlock) Parent() Block + func (b *TestBlock) Verify() error + type Topological struct + func (ts *Topological) AcceptedOrProcessing(blk Block) bool + func (ts *Topological) Add(blk Block) error + func (ts *Topological) DecidedOrProcessing(blk Block) bool + func (ts *Topological) Finalized() bool + func (ts *Topological) HealthCheck() (interface{}, error) + func (ts *Topological) Initialize(ctx *snow.Context, 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) RecordPoll(voteBag ids.Bag) error + type TopologicalFactory struct + func (TopologicalFactory) New() Consensus