Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2022 v1.0.1 Dec 1, 2021 Changes in this version + type ConsensusImplInterface interface + CalculateBlock func(block cctx.BlockInterface) error + CheckMinerMatch func(ctx xcontext.XContext, block cctx.BlockInterface) (bool, error) + CompeteMaster func(height int64) (bool, bool, error) + GetConsensusStatus func() (ConsensusStatus, error) + ParseConsensusStorage func(block cctx.BlockInterface) (interface{}, error) + ProcessBeforeMiner func(timestamp int64) ([]byte, []byte, error) + ProcessConfirmBlock func(block cctx.BlockInterface) error + Start func() error + Stop func() error + type ConsensusStatus interface + GetConsensusBeginInfo func() int64 + GetConsensusName func() string + GetCurrentTerm func() int64 + GetCurrentValidatorsInfo func() []byte + GetStepConsensusIndex func() int + GetVersion func() int64