Documentation ¶
Index ¶
Constants ¶
View Source
const CALL_ELECTIONS_CONTRACT_INTERVAL = 200 * time.Millisecond
Variables ¶
View Source
var ErrFailedTransactionOrdering = errors.New("ErrFailedTransactionOrdering")
View Source
var ErrGetStateHash = errors.New("ErrGetStateHash failed in GetStateHash() so cannot retrieve pre-execution state diff merkleRoot from previous block")
View Source
var ErrInvalidBlockTimestamp = errors.New("ErrInvalidBlockTimestamp")
View Source
var ErrMismatchedBlockHeight = errors.New("ErrMismatchedBlockHeight")
View Source
var ErrMismatchedPreExecutionStateMerkleRoot = errors.New("ErrMismatchedPreExecutionStateMerkleRoot pre-execution state diff merkleRoot is different between results block header and extracted from state storage for previous block")
View Source
var ErrMismatchedPrevBlockHash = errors.New("ErrMismatchedPrevBlockHash")
View Source
var ErrMismatchedProtocolVersion = errors.New("ErrMismatchedProtocolVersion")
View Source
var ErrMismatchedTxHashPtrToActualTxBlock = errors.New("ErrMismatchedTxHashPtrToActualTxBlock mismatched tx block hash ptr to actual tx block hash")
View Source
var ErrMismatchedTxRxBlockHeight = errors.New("ErrMismatchedTxRxBlockHeight mismatched block height between transactions and results")
View Source
var ErrMismatchedTxRxTimestamps = errors.New("ErrMismatchedTxRxTimestamps mismatched timestamp between transactions and results")
View Source
var ErrMismatchedVirtualChainID = errors.New("ErrMismatchedVirtualChainID")
View Source
var ErrProcessTransactionSet = errors.New("ErrProcessTransactionSet failed in ProcessTransactionSet()")
View Source
var LogTag = log.Service("consensus-context")
Functions ¶
func NewConsensusContext ¶
func NewConsensusContext( transactionPool services.TransactionPool, virtualMachine services.VirtualMachine, stateStorage services.StateStorage, config config.ConsensusContextConfig, logger log.BasicLogger, metricFactory metric.Factory, ) services.ConsensusContext
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.