Documentation ¶
Index ¶
- Variables
- func GetBroadcastMessenger(marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, ...) (consensus.BroadcastMessenger, error)
- func GetConsensusCoreFactory(consensusType string) (spos.ConsensusService, error)
- func GetSubroundsFactory(consensusDataContainer spos.ConsensusCoreHandler, ...) (spos.SubroundsFactory, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidConsensusType = errors.New("invalid consensus type")
ErrInvalidConsensusType signals that an invalid consensus type has been provided
View Source
var ErrInvalidShardId = errors.New("invalid shard id")
ErrInvalidShardId signals that an invalid shard id has been provided
Functions ¶
func GetBroadcastMessenger ¶
func GetBroadcastMessenger( marshalizer marshal.Marshalizer, messenger consensus.P2PMessenger, shardCoordinator sharding.Coordinator, privateKey crypto.PrivateKey, singleSigner crypto.SingleSigner, ) (consensus.BroadcastMessenger, error)
GetBroadcastMessenger returns a consensus service depending of the given parameter
func GetConsensusCoreFactory ¶
func GetConsensusCoreFactory(consensusType string) (spos.ConsensusService, error)
GetConsensusCoreFactory returns a consensus service depending of the given parameter
func GetSubroundsFactory ¶
func GetSubroundsFactory( consensusDataContainer spos.ConsensusCoreHandler, consensusState *spos.ConsensusState, worker spos.WorkerHandler, consensusType string, appStatusHandler core.AppStatusHandler, indexer indexer.Indexer, chainID []byte, ) (spos.SubroundsFactory, error)
GetSubroundsFactory returns a subrounds factory depending of the given parameter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.