Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeySigAlgo = "MaxbftSigAlgo" KeyCheckVoteInSingle = "MaxbftCheckVoteInSingle" )
View Source
const ( ECDSAAlgo = "ecdsa" ThresholdAlgo = "threshold" DefaultCheckVoteInSingle = true )
Variables ¶
This section is empty.
Functions ¶
func InitWalService ¶
func InitWalService(config *config.ConsensusConfig, chainID, nodeID string) (wal_service.WalService, error)
InitWalService init wal service
func InitWalServiceByMarshalFunc ¶
func InitWalServiceByMarshalFunc(config *config.ConsensusConfig, chainID, nodeID string, marshalFunc wal_service.MarshalFunc) (wal_service.WalService, error)
InitWalServiceByMarshalFunc init wal service use marshal functions
Types ¶
type ConsensusImplConfig ¶
type ConsensusImplConfig struct {
ChainId string
NodeId string
Ac protocol.AccessControlProvider
Core protocol.CoreEngine
Store protocol.BlockchainStore
MsgBus msgbus.MessageBus
Signer protocol.SigningMember
ChainConf protocol.ChainConf
NetService protocol.NetService
LedgerCache protocol.LedgerCache
ProposalCache protocol.ProposalCache
SigAlgoInVote string
CheckVoteInSingle bool
}
type ValidatorListFunc ¶
type ValidatorListFunc func(chainConfig *config.ChainConfig, store protocol.BlockchainStore) (validators []string, err error)
ValidatorListFunc load validator list by chain config and blockchain store
Click to show internal directories.
Click to hide internal directories.