package
2.1.3-rc0
Repository: https://github.com/iotexproject/iotex-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewNoop creates a Noop struct.
NewStandalone creates a Standalone struct.

# Variables

ErrNotImplemented indicates the method is not implemented yet.

# Structs

ConsensusMetrics contains consensus metrics to expose.
Noop is the consensus scheme that does NOT create blocks.
Standalone is the consensus scheme that periodically create blocks.

# Interfaces

Scheme is the interface that consensus schemes should implement.

# Type aliases

Broadcast sends a broadcast message to the whole network.
BroadcastCB defines the callback to publish the consensus result.
ConsensusDoneCB defines the callback when consensus is reached.
CreateBlockCB defines the callback to create a new block.
TellPeerCB defines the callback to tell (which is a unicast) message to peers on P2P network.