Categorygithub.com/fixed-g/consensusfuzz/v2
modulepackage
2.0.0-20240530110408-f7fc21dceea7
Repository: https://github.com/fixed-g/consensusfuzz.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
CopyBlock generates a new block with a old block, internally using the same pointer.
CopyProposalWithBlockHeader create a new Proposal instance for sign and verify.
CurrentTime return current time.
No description provided by the author
No description provided by the author
No description provided by the author
GetValidatorList get Validator List From Config @param chainConfig @param store Not currently in use @return validators @return err .
GetValidatorListFromConfig get Validator List From Config @param chainConfig @return validators @return err .
InitLWS initialize LWS @param config Consensus Config @param chainId @param nodeId @return lwsInstance @return walWriteMode @return err .
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Broadcaster Mutations:.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
需要指定consensusMsg类型.
No description provided by the author
New creates a tbft consensus instance.
NewBlockVotes creates a new BlockVotes instance.
NewConsensusFutureMsg creates a new future msg instance.
NewConsensusState creates a new ConsensusState instance.
NewProposal create a new Proposal.
NewProposalBlock create a new ProposalBlock.
NewTbftConsistentMessage 初始化得到一致性引擎消息处理实例.
NewTBFTProposal create tbft proposal instance.
NewTBFTStatusBroadcaster 得到一个broadcaster实例.
NewVote create a new Vote instance.
NewVoteSet creates a new VoteSet instance.
NewVoteSetFromProto creates a new VoteSet instance from pb.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StructToMap convert struct to map[string]interface{} if value of field is nil, result doesn't contain related field and value for example: input is struct {a: 1, b: "abc", c: nil}, convert to a--1, b--"abc", result doesn't contain field c notice: field must be exported, unexported field will panic.
No description provided by the author
No description provided by the author
No description provided by the author
VerifyBlockSignatures verifies whether the signatures in block is qulified with the consensus algorithm.
VerifyQcFromVotes verifies whether the signatures in votes verify that the maj32 of the votes error when verify successfully, and return corresponding error when failed.
VerifyRoundQc verifies whether the signatures in roundQC verify that the Qc is nil hash and the maj32 of the voteSet error when verify successfully, and return corresponding error when failed.
No description provided by the author

# Constants

DefaultBlocksPerProposer The number of blocks each proposer can propose.
DefaultTimeoutPropose Timeout of waitting for a proposal before prevoting nil.
DefaultTimeoutProposeDelta Increased time delta of TimeoutPropose between rounds.
DefaultTimeoutProposeOptimal optimal timeout of waitting for a proposal before prevoting nil.
No description provided by the author
InterceptorTbft 标识.
MessageBufferSize 缓存消息大小.
StatusBroadcasterTbft TBFT状态广播器ID.
No description provided by the author
TimeDisconnet the duration of node disconnectio(3000ms).
TimeoutCommit Timeout to wait for precommite.
TimeoutPrecommit Timeout of waiting for >2/3 precommit.
TimeoutPrecommitDelta Increased time delta of TimeoutPrecommit between round.
TimeoutPrevote Timeout of waiting for >2/3 prevote.
TimeoutPrevoteDelta Increased time delta of TimeoutPrevote between round.
TypeLocalTBFTState is the state of local node.
TypeRemoteTBFTState is the state of remote nodes.
No description provided by the author

# Variables

No description provided by the author
ErrInvalidIndex implements the error for invalid index of validators.
ErrInvalidValidator implements the error of nil invalid validator.
ErrUnexceptedStep implements the error of unexpected step in tbft.
ErrVoteForDifferentHash implements the error of invalid hash.
ErrVoteNil implements the error of nil vote.
No description provided by the author
保存txId和请求参数的对应关系.
保存txId和入参日志的对应关系.
No description provided by the author
TBFT_blocks_per_proposer implements the config key for chainconf.
TBFT_propose_delta_timeout_key implements the config key for chainconf.
TBFT_propose_optimal_key implements the config key for chainconf.
TBFT_propose_timeout_key implements the config key for chainconf.
TBFT_propose_timeout_optimal_key implements the config key for chainconf.
TBFTAddtionalDataKey implements the block key for store tbft infos.
TimerInterval 定时器间隔.

# Structs

No description provided by the author
No description provided by the author
BlockVotes traces the vote from different voter.
No description provided by the author
ConsensusFutureMsg represents the consensus msg of future .
ConsensusFutureMsgCache cache future consensus msg .
ConsensusMsg implements transformation of structure and pb.
ConsensusState represents the consensus state of the node.
ConsensusTBFTImpl is the implementation of TBFT algorithm and it implements the ConsensusEngine interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node 节点信息(local/remoter).
No description provided by the author
No description provided by the author
No description provided by the author
RemoteState validator status, validator and remote are the same .
StatusBroadcaster 一致性引擎的状态和消息的broadcaster实现 .
StatusDecoder 状态解析器 .
StatusInterceptor 状态拦截器.
TbftConsistentMessage 实现一致性引擎消息的接收和发送 .
TBFTProposal represents the marshaled proposal.
No description provided by the author
VoteSet wraps tbftpb.VoteSet and validatorSet.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author