Versions in this module Expand all Collapse all v0 v0.2.0 Jun 5, 2019 Changes in this version + type ConsensusSet interface + ConsensusSetSubscribe func(modules.ConsensusSetSubscriber, modules.ConsensusChangeID, <-chan struct{}) error + Synced func() bool + type JSONPersist struct + func NewJSONPersist(dir string) JSONPersist + func (p JSONPersist) Load(data *PersistData) error + func (p JSONPersist) Save(data PersistData) error + type PersistData struct + Height types.BlockHeight + Hosts map[string][]byte + LastChange modules.ConsensusChangeID + type Persister interface + Load func(*PersistData) error + Save func(PersistData) error + type SHARD struct + func New(cs ConsensusSet, p Persister) (*SHARD, error) + func (s *SHARD) Height() types.BlockHeight + func (s *SHARD) Host(prefix string) (pk string, unique bool) + func (s *SHARD) HostAnnouncement(pubkey string) ([]byte, bool) + func (s *SHARD) ProcessConsensusChange(cc modules.ConsensusChange) + func (s *SHARD) Synced() bool