Versions in this module Expand all Collapse all v0 v0.1.0 Dec 24, 2020 Changes in this version + func SortTestBlocks(blocks []*TestBlock) + type Block interface + Bytes func() []byte + Parent func() Block + Verify func() error + type Consensus interface + Add func(Block) error + Finalized func() bool + Initialize func(*snow.Context, snowball.Parameters, ids.ID) error + Issued func(Block) bool + 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 (m *Topological) Accepted(id ids.ID) + func (m *Topological) Rejected(id ids.ID) + func (ts *Topological) Add(blk Block) error + func (ts *Topological) Finalized() bool + func (ts *Topological) Initialize(ctx *snow.Context, params snowball.Parameters, rootID ids.ID) error + func (ts *Topological) Issued(blk Block) bool + 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