Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + type Consensus interface + Add func(Tx) error + Conflicts func(Tx) ids.Set + Finalized func() bool + HealthCheck func() (interface{}, error) + Initialize func(*snow.ConsensusContext, 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) + Remove func(ids.ID) error + Virtuous func() ids.Set + VirtuousVoting func() ids.Set + type Directed struct + func (dg *Directed) Add(tx Tx) error + func (dg *Directed) Conflicts(tx Tx) ids.Set + func (dg *Directed) Finalized() bool + func (dg *Directed) HealthCheck() (interface{}, error) + func (dg *Directed) Initialize(ctx *snow.ConsensusContext, params sbcon.Parameters) error + func (dg *Directed) IsVirtuous(tx Tx) bool + func (dg *Directed) Issued(tx Tx) bool + func (dg *Directed) Parameters() sbcon.Parameters + func (dg *Directed) Preferences() ids.Set + func (dg *Directed) Quiesce() bool + func (dg *Directed) RecordPoll(votes ids.Bag) (bool, error) + func (dg *Directed) Remove(txID ids.ID) error + func (dg *Directed) String() string + func (dg *Directed) Virtuous() ids.Set + func (dg *Directed) VirtuousVoting() ids.Set + type DirectedFactory struct + func (DirectedFactory) New() Consensus + type Factory interface + New func() Consensus + type TestTx struct + BytesV []byte + DependenciesErrV error + DependenciesV []Tx + HasWhitelistV bool + InputIDsV []ids.ID + VerifyV error + WhitelistErrV error + WhitelistV ids.Set + func (t *TestTx) Bytes() []byte + func (t *TestTx) Dependencies() ([]Tx, error) + func (t *TestTx) HasWhitelist() bool + func (t *TestTx) InputIDs() []ids.ID + func (t *TestTx) Verify() error + func (t *TestTx) Whitelist() (ids.Set, error) + type Tx interface + Bytes func() []byte + Dependencies func() ([]Tx, error) + InputIDs func() []ids.ID + Verify func() error + type Whitelister interface + HasWhitelist func() bool + Whitelist func() (ids.Set, error) v1.0.0-alpha Nov 22, 2022