Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusSet ¶
type ConsensusSet interface { ConsensusSetSubscribe(modules.ConsensusSetSubscriber, modules.ConsensusChangeID, <-chan struct{}) error Synced() bool }
type JSONPersist ¶
type JSONPersist struct {
// contains filtered or unexported fields
}
func NewJSONPersist ¶
func NewJSONPersist(dir string) JSONPersist
func (JSONPersist) Load ¶
func (p JSONPersist) Load(data *PersistData) error
func (JSONPersist) Save ¶
func (p JSONPersist) Save(data PersistData) error
type PersistData ¶
type PersistData struct { Height types.BlockHeight Hosts map[string][]byte LastChange modules.ConsensusChangeID }
type Persister ¶
type Persister interface { Save(PersistData) error Load(*PersistData) error }
type SHARD ¶
type SHARD struct {
// contains filtered or unexported fields
}
func (*SHARD) Height ¶
func (s *SHARD) Height() types.BlockHeight
func (*SHARD) ProcessConsensusChange ¶
func (s *SHARD) ProcessConsensusChange(cc modules.ConsensusChange)
Click to show internal directories.
Click to hide internal directories.