Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + type Consensus interface + Add func(Tx) + Conflicts func(Tx) ids.Set + Finalized func() bool + Initialize func(*snow.Context, snowball.Parameters) + IsVirtuous func(Tx) bool + Issued func(Tx) bool + Parameters func() snowball.Parameters + Preferences func() ids.Set + Quiesce func() bool + RecordPoll func(ids.Bag) + Virtuous func() ids.Set + type Directed struct + func (dg *Directed) Add(tx Tx) + func (dg *Directed) Conflicts(tx Tx) ids.Set + func (dg *Directed) Finalized() bool + func (dg *Directed) Initialize(ctx *snow.Context, params snowball.Parameters) + func (dg *Directed) IsVirtuous(tx Tx) bool + func (dg *Directed) Issued(tx Tx) bool + func (dg *Directed) Parameters() snowball.Parameters + func (dg *Directed) Preferences() ids.Set + func (dg *Directed) Quiesce() bool + func (dg *Directed) RecordPoll(votes ids.Bag) + func (dg *Directed) String() string + func (dg *Directed) Virtuous() ids.Set + func (m *Directed) Accepted(id ids.ID) + func (m *Directed) Rejected(id ids.ID) + type DirectedFactory struct + func (DirectedFactory) New() Consensus + type Factory interface + New func() Consensus + type Input struct + func (ig *Input) Add(tx Tx) + func (ig *Input) Conflicts(tx Tx) ids.Set + func (ig *Input) Finalized() bool + func (ig *Input) Initialize(ctx *snow.Context, params snowball.Parameters) + func (ig *Input) IsVirtuous(tx Tx) bool + func (ig *Input) Issued(tx Tx) bool + func (ig *Input) Parameters() snowball.Parameters + func (ig *Input) Preferences() ids.Set + func (ig *Input) Quiesce() bool + func (ig *Input) RecordPoll(votes ids.Bag) + func (ig *Input) String() string + func (ig *Input) Virtuous() ids.Set + func (m *Input) Accepted(id ids.ID) + func (m *Input) Rejected(id ids.ID) + type InputFactory struct + func (InputFactory) New() Consensus + type TestTx struct + Bits []byte + Deps []Tx + Identifier ids.ID + Ins ids.Set + Stat choices.Status + Validity error + func (tx *TestTx) Accept() + func (tx *TestTx) Bytes() []byte + func (tx *TestTx) Dependencies() []Tx + func (tx *TestTx) ID() ids.ID + func (tx *TestTx) InputIDs() ids.Set + func (tx *TestTx) Reject() + func (tx *TestTx) Reset() + func (tx *TestTx) Status() choices.Status + func (tx *TestTx) Verify() error + type Tx interface + Bytes func() []byte + Dependencies func() []Tx + InputIDs func() ids.Set + Verify func() error