# 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.
# Interfaces
Consensus is the interface for handling IotxConsensus view change.
# Type aliases
Option sets Consensus construction parameter.