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

# Packages

No description provided by the author
No description provided by the author

# Functions

NewConsensus creates a IotxConsensus struct.
WithBroadcast is an option to add broadcast callback to Consensus.
WithPollProtocol is an option to register poll protocol.
WithRollDPoSProtocol is an option to register rolldpos protocol.

# Constants

NOOPScheme means that the node does not create only block.
RollDPoSScheme means randomized delegated proof of stake.
StandaloneScheme means that the node creates a block periodically regardless of others (if there is any).

# Variables

DefaultConfig is the default config for blocksync.

# Structs

No description provided by the author
IotxConsensus implements Consensus.

# Interfaces

Consensus is the interface for handling IotxConsensus view change.

# Type aliases

Option sets Consensus construction parameter.