Documentation ¶
Overview ¶
Package config contains structs that are useful for initializing consensus.
These structs do not implement the consensus.Replica or consensus.Configuration interfaces, but do contain more or less the same information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplicaConfig ¶
type ReplicaConfig struct { ID hotstuff.ID PrivateKey consensus.PrivateKey Creds credentials.TransportCredentials Replicas map[hotstuff.ID]*ReplicaInfo }
ReplicaConfig holds information needed by a replica.
func NewConfig ¶
func NewConfig(id hotstuff.ID, privateKey consensus.PrivateKey, creds credentials.TransportCredentials) *ReplicaConfig
NewConfig returns a new ReplicaConfig instance.
Click to show internal directories.
Click to hide internal directories.