# Functions
Debugf is like fmt.Printf, but only output when we are in debug mode.
Debugln is like fmt.Println, but only output when we are in debug mode.
DiffUint64 calculates difference between two uint64.
HashConfigurationBlock returns the hash value of configuration block.
NewConsensus construct an Consensus instance.
NewConsensusForSimulation creates an instance of Consensus for simulation, the only difference with NewConsensus is nonblocking of app.
NewConsensusFromSyncer constructs an Consensus instance from information provided from syncer.
NewTSigVerifierCache creats a TSigVerifierCache instance.
VerifyAgreementResult perform sanity check against a types.AgreementResult instance.
# Constants
ConfigRoundShift refers to the difference between block's round and config round derived from its state.
DKGDelayRound refers to the round that first DKG is run.
TickerType enum.
TickerType enum.
TickerType enum.
# Variables
Errors for sanity check error.
Errors returned from BA modules.
Errors for consensus core.
Errors for consensus core.
Errors for consensus core.
Errors for configuration chain..
Errors for configuration chain..
Errors for configuration chain..
Errors for sanity check error.
ErrEmptyTimestamps would be reported if Block.timestamps is empty.
Errors for dkg module.
Errors for sanity check error.
Errors for consensus core.
Errors for consensus core.
Errors returned from BA modules.
Errors for consensus core.
Errors for sanity check error.
Errors for dkg module.
Errors for dkg module.
Errors for dkg module.
Errors for consensus core.
Errors for utils.
Errors for agreement module.
Errors for utils.
Errors for utils.
Errors for utils.
Errors for agreement module.
Errors for utils.
Errors returned from BA modules.
Errors for sanity check error.
Errors for sanity check error.
Errors for sanity check error.
Errors for agreement module.
Errors for sanity check error.
Errors for agreement module.
Errors for dkg module.
Errors for sanity check error.
Errors for agreement state module.
Errors for agreement state module.
Errors for dkg module.
Errors for dkg module.
Errors for consensus core.
Errors for sanity check error.
Errors for sanity check error.
Errors for agreement module.
Errors for dkg module.
Errors returned from BA modules.
Errors returned from BA modules.
Errors for consensus core.
Errors for sanity check error.
Errors for dkg module.
Errors for sanity check error.
Errors returned from BA modules.
Errors for dkg module.
Errors for dkg module.
Errors for configuration chain..
Errors for configuration chain..
Errors for dkg module.
Errors for dkg module.
Errors for consensus core.
NewNodeSetCache is function alias to avoid fullnode compile error when moving it to core/utils package.
NoRand is the magic placeholder for randomness field in blocks for blocks proposed before DKGDelayRound.
# Structs
Consensus implements DEXON Consensus algorithm.
ErrFork for fork error in agreement.
ErrForkVote for fork vote error in agreement.
ErrMismatchDKG represent an attempt to run DKG protocol is failed because the register DKG protocol is mismatched, interms of round and resetCount.
ErrUnexpectedDKGResetCount represents receiving a DKG message with unexpected DKG reset count.
ErrUnexpectedRound represents receiving a DKG message with unexpected round.
TSigVerifierCache is the cache for TSigVerifier.
# Interfaces
Application describes the application interface that interacts with DEXON consensus core.
Debug describes the application interface that requires more detailed consensus execution.
Governance interface specifies interface to control the governance contract.
Network describs the network interface that interacts with DEXON consensus core.
Recovery interface for interacting with recovery information.
Ticker define the capability to tick by interval.
TSigVerifier is the interface verifying threshold signature.
TSigVerifierCacheInterface specifies interface used by TSigVerifierCache.
# Type aliases
NodeSetCache is type alias to avoid fullnode compile error when moving it to core/utils package.
TickerType is the type of ticker.