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 + var EmptyJustify = errors.New("Justify is empty.") + var EmptyValidors = errors.New("Current validators is empty.") + var InvalidJustify = errors.New("Justify structure is invalid.") + var MaxMapSize = 1000 + var NotValidContract = errors.New("Cannot get valid res with contract.") + var StatusBadRequest = 400 + var StatusErr = 500 + var StatusOK = 200 + func AddressEqual(a []string, b []string) bool + func CleanProduceMap(isProduce map[int64]bool, period int64) + func InitQCTree(startHeight int64, ledger cctx.LedgerRely, log logs.Logger) *chainedBft.QCPendingTree + func NewContractErrResponse(status int, msg string) *contract.Response + func NewContractOKResponse(json []byte) *contract.Response + func NewSignToOld(new []*bftPb.QuorumCertSign) []*lpb.SignInfo + func NewToOldQC(new *chainedBft.QuorumCert) (*lpb.QuorumCert, error) + func OldQCToNew(storage []byte) (*chainedBft.QuorumCert, error) + func OldSignToNew(storage []byte) []*bftPb.QuorumCertSign + type ConsensusStorage struct + CurBlockNum int64 + CurTerm int64 + Justify *lpb.QuorumCert + TargetBits int32 + func ParseOldQCStorage(storage []byte) (*ConsensusStorage, error)