Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsClustered ¶ added in v0.1.4
func IsClustered() bool
IsClustered returns true if we're running in clustered mode
func IsCommitter ¶
func IsCommitter() bool
IsCommitter returns true if the peer is a committer, otherwise the peer does not commit to the DB
Types ¶
type Role ¶
type Role = string
Role is the role of the peer
const ( // CommitterRole indicates that the peer commits data to the ledger CommitterRole Role = "committer" // EndorserRole indicates that the peer endorses transaction proposals EndorserRole Role = "endorser" // ValidatorRole indicates that the peer validates the block ValidatorRole Role = "validator" )
Click to show internal directories.
Click to hide internal directories.