Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + type Consensus interface + Add func(Vertex) error + Finalized func() bool + HealthCheck func() (interface{}, error) + Initialize func(*snow.Context, Parameters, []Vertex) error + IsVirtuous func(snowstorm.Tx) bool + NumProcessing func() int + Orphans func() ids.Set + Parameters func() Parameters + Preferences func() ids.Set + Quiesce func() bool + RecordPoll func(ids.UniqueBag) error + TxIssued func(snowstorm.Tx) bool + VertexIssued func(Vertex) bool + Virtuous func() ids.Set + type Factory interface + New func() Consensus + type Parameters struct + BatchSize int + Parents int + func (p Parameters) Valid() error + type TestVertex struct + BytesV []byte + EpochErrV error + EpochV uint32 + HeightErrV error + HeightV uint64 + ParentsErrV error + ParentsV []Vertex + TxsErrV error + TxsV []snowstorm.Tx + func (v *TestVertex) Bytes() []byte + func (v *TestVertex) Epoch() (uint32, error) + func (v *TestVertex) Height() (uint64, error) + func (v *TestVertex) Parents() ([]Vertex, error) + func (v *TestVertex) Txs() ([]snowstorm.Tx, error) + type Topological struct + func (ta *Topological) Add(vtx Vertex) error + func (ta *Topological) Finalized() bool + func (ta *Topological) HealthCheck() (interface{}, error) + func (ta *Topological) Initialize(ctx *snow.Context, params Parameters, frontier []Vertex) error + func (ta *Topological) IsVirtuous(tx snowstorm.Tx) bool + func (ta *Topological) NumProcessing() int + func (ta *Topological) Orphans() ids.Set + func (ta *Topological) Parameters() Parameters + func (ta *Topological) Preferences() ids.Set + func (ta *Topological) Quiesce() bool + func (ta *Topological) RecordPoll(responses ids.UniqueBag) error + func (ta *Topological) TxIssued(tx snowstorm.Tx) bool + func (ta *Topological) VertexIssued(vtx Vertex) bool + func (ta *Topological) Virtuous() ids.Set + type TopologicalFactory struct + func (TopologicalFactory) New() Consensus + type Vertex interface + Bytes func() []byte + Epoch func() (uint32, error) + Height func() (uint64, error) + Parents func() ([]Vertex, error) + Txs func() ([]snowstorm.Tx, error)