Versions in this module Expand all Collapse all v0 v0.1.0 Dec 24, 2020 Changes in this version + func ConsensusString(name string, nodes []*snowballNode) string + type Consensus interface + Add func(Tx) error + Conflicts func(Tx) ids.Set + Finalized func() bool + Initialize func(*snow.Context, sbcon.Parameters) error + IsVirtuous func(Tx) bool + Issued func(Tx) bool + Parameters func() sbcon.Parameters + Preferences func() ids.Set + Quiesce func() bool + RecordPoll func(ids.Bag) (bool, error) + Virtuous func() ids.Set + type Directed struct + func (c *Directed) Finalized() bool + func (c *Directed) Parameters() sbcon.Parameters + func (c *Directed) Preferences() ids.Set + func (c *Directed) Quiesce() bool + func (c *Directed) Virtuous() ids.Set + func (dg *Directed) Add(tx Tx) error + func (dg *Directed) Conflicts(tx Tx) ids.Set + func (dg *Directed) Initialize(ctx *snow.Context, params sbcon.Parameters) error + func (dg *Directed) IsVirtuous(tx Tx) bool + func (dg *Directed) Issued(tx Tx) bool + func (dg *Directed) RecordPoll(votes ids.Bag) (bool, error) + func (dg *Directed) String() string + type DirectedFactory struct + func (DirectedFactory) New() Consensus + type Factory interface + New func() Consensus + type Input struct + func (c *Input) Finalized() bool + func (c *Input) Parameters() sbcon.Parameters + func (c *Input) Preferences() ids.Set + func (c *Input) Quiesce() bool + func (c *Input) Virtuous() ids.Set + func (ig *Input) Add(tx Tx) error + func (ig *Input) Conflicts(tx Tx) ids.Set + func (ig *Input) Initialize(ctx *snow.Context, params sbcon.Parameters) error + func (ig *Input) IsVirtuous(tx Tx) bool + func (ig *Input) Issued(tx Tx) bool + func (ig *Input) RecordPoll(votes ids.Bag) (bool, error) + func (ig *Input) String() string + type InputFactory struct + func (InputFactory) New() Consensus + type TestTx struct + BytesV []byte + DependenciesV []Tx + InputIDsV []ids.ID + VerifyV error + func (t *TestTx) Bytes() []byte + func (t *TestTx) Dependencies() []Tx + func (t *TestTx) InputIDs() []ids.ID + func (t *TestTx) Verify() error + type Tx interface + Bytes func() []byte + Dependencies func() []Tx + InputIDs func() []ids.ID + Verify func() error