Versions in this module Expand all Collapse all v3 v3.0.1 Dec 27, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const BFTNodesNum + const BlockVersion2400 + const MaxbftQC + var DefaultMaxRoundTimeout time.Duration = 1000 * 60 * 5 + var DefaultRoundTimeout time.Duration = 15000 + var DefaultRoundTimeoutInterval time.Duration = 1000 + var EpochStrategy = strings.ToLower("MaxBFTEpochStrategy") + var MaxBFTAdditionalQCKey = "MaxBFTAdditionalQCKey" + var MaxTimeoutMill = strings.ToLower("MaxBFTMaxTimeoutMill") + var NumPerEpoch = strings.ToLower("MaxBFTPerEpochNumber") + var RoundTimeoutIntervalMill = strings.ToLower("MaxBFTRoundTimeoutIntervalMill") + var RoundTimeoutMill = strings.ToLower("MaxBFTRoundTimeoutMill") + var ViewNumsPerEpochV230 = "MaxBftViewNumsPerEpoch" + func AddArgsToBlock(view uint64, block *common.Block, txRwSet *common.TxRWSet) + func GetBlockIdFromQC(qc *maxbft.QuorumCert) []byte + func GetBlockView(block *common.Block) uint64 + func GetChainConfigFromChainStore(store protocol.BlockchainStore) (*config.ChainConfig, error) + func GetConfigFromSnapshot(snapshot protocol.Snapshot) (*config.ChainConfig, error) + func GetConsensusNodes(conf *config.ChainConfig) []string + func GetGovernanceContractFromChainStore(store protocol.BlockchainStore) (*maxbft.GovernanceContract, error) + func GetGovernanceContractTxRWSet(governanceContract *maxbft.GovernanceContract) (*common.TxRWSet, error) + func GetHeightFromQC(qc *maxbft.QuorumCert) uint64 + func GetMiniNodes(consensusNodesNum int) uint + func GetNodeIdFromSigner(signer *accesscontrol.Member, ac protocol.AccessControlProvider, ...) (nodeId string, err error) + func GetQCFromBlock(block *common.Block) *maxbft.QuorumCert + func GetQCHeight(proposal *maxbft.ProposalData) uint64 + func GetQCView(proposal *maxbft.ProposalData) uint64 + func GetQuorum(consensusNodesNum int) uint + func GetViewFromQC(qc *maxbft.QuorumCert) uint64 + func InsertQCToBlock(block *common.Block, qc *maxbft.QuorumCert) + func IsValidator(node string, validators []string) bool + func MustMarshal(msg proto.Message) (data []byte) Other modules containing this package chainmaker.org/chainmaker/consensus-maxbft/v2