Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusFactory ¶
ConsensusFactory is responsible for initializing the consensus processes with the proper parameters. It subscribes to the initialization topic and, upon reception of a message, will start all of the components related to consensus. It should also contain all the relevant information for the processes it intends to start up.
func New ¶
func New(eventBus wire.EventBroker, rpcBus *wire.RPCBus, timerLength time.Duration, keys user.Keys) *ConsensusFactory
New returns an initialized ConsensusFactory.
func (*ConsensusFactory) StartConsensus ¶
func (c *ConsensusFactory) StartConsensus()
StartConsensus will wait for a message to come in, and then proceed to start the consensus components.
Click to show internal directories.
Click to hide internal directories.