Documentation ¶
Index ¶
- Constants
- Variables
- func BroadcastingMessage(msg *HotstuffMessage) string
- func CommittingBlock(height uint64, numTxs int) string
- func DebugHandlingHotstuffMessage(msg *HotstuffMessage) string
- func DebugNodeState(state ConsensusNodeState) string
- func DebugTogglePacemakerManualMode(mode string) string
- func ElectedNewLeader(address string, nodeId NodeId) string
- func ElectedSelfAsNewLeader(address string, nodeId NodeId) string
- func ErrByzantineThresholdCheck(n int, threshold float64) error
- func ErrCreateProposeMessage(step HotstuffStep) error
- func ErrCreateVoteMessage(step HotstuffStep) error
- func ErrInvalidAppHash(blockHeaderHash, appHash string) error
- func ErrInvalidBlockSize(blockSize, maxSize uint64) error
- func ErrLeaderElection(msg *HotstuffMessage) error
- func ErrMissingValidator(address string, nodeId NodeId) error
- func ErrPacemakerUnexpectedMessageHeight(err error, heightCurrent, heightMessage uint64) error
- func ErrPacemakerUnexpectedMessageStepRound(err error, step HotstuffStep, round uint64, msg *HotstuffMessage) error
- func ErrQCInvalid(step HotstuffStep) error
- func ErrUnknownConsensusMessageType(msg interface{}) error
- func ErrValidatingPartialSig(senderAddr string, senderNodeId NodeId, msg *HotstuffMessage, pubKey string) error
- func GetValAddrToIdMap(validatorMap map[string]*typesGenesis.Validator) (ValAddrToIdMap, IdToValAddrMap)
- func OptimisticVoteCountPassed(step HotstuffStep) string
- func OptimisticVoteCountWaiting(step HotstuffStep, status string) string
- func PacemakerCatchup(height1, step1, round1, height2, step2, round2 uint64) string
- func PacemakerInterrupt(height uint64, step HotstuffStep, round uint64) string
- func PacemakerNewHeight(height uint64) string
- func PacemakerTimeout(height uint64, step HotstuffStep, round uint64) string
- func SendingMessage(msg *HotstuffMessage, nodeId NodeId) string
- func WarnDiscardHotstuffMessage(_ *HotstuffMessage, reason string) string
- func WarnIncompletePartialSig(ps *PartialSignature, msg *HotstuffMessage) string
- func WarnInvalidPartialSigInQC(address string, nodeId NodeId) string
- func WarnMissingPartialSig(msg *HotstuffMessage) string
- func WarnUnexpectedMessageInPool(_ *HotstuffMessage, height uint64, step HotstuffStep, round uint64) string
- type ConsensusNodeState
- type IdToValAddrMap
- type NodeId
- type ValAddrToIdMap
Constants ¶
View Source
const ( // INFO DisregardHotstuffMessage = "Discarding hotstuff message" NotLockedOnQC = "node is not locked on any QC" ProposalBlockExtends = "the ProposalQC block is the same as the LockedQC block" // WARN NilUtilityContextWarning = "[WARN] Utility context not nil when preparing a new block? Releasing for now but should not happen" InvalidPartialSigInQCWarning = "[WARN] QC contains an invalid partial signature" // DEBUG DebugResetToGenesis = "[DEBUG] Resetting to genesis..." DebugTriggerNextView = "[DEBUG] Triggering next view..." )
Logs and warnings
Variables ¶
View Source
var ( ErrNilBlock = errors.New(nilBLockError) ErrNilBlockProposal = errors.New(nilBLockProposalError) ErrNilBlockVote = errors.New(nilBLockVoteError) ErrProposalNotValidInPrepare = errors.New(proposalNotValidInPrepareError) ErrNilQC = errors.New(nilQCError) ErrNilQCProposal = errors.New(nilQCProposalError) ErrNilBlockInQC = errors.New(nilBlockInQCError) ErrNilThresholdSigInQC = errors.New(nilThresholdSigInQCError) ErrNotEnoughSignatures = errors.New(notEnoughSignaturesError) ErrNodeIsLockedOnPastQC = errors.New(nodeIsLockedOnPastQCError) ErrUnhandledProposalCase = errors.New(unhandledProposalCaseError) ErrUnnecessaryPartialSigForNewRound = errors.New(unnecessaryPartialSigForNewRoundError) ErrUnnecessaryPartialSigForLeaderProposal = errors.New(unnecessaryPartialSigForLeaderProposalError) ErrNilPartialSig = errors.New(nilPartialSigError) ErrNilPartialSigOrSourceNotSpecified = errors.New(nilPartialSigOrSourceNotSpecifiedError) ErrOlderMessage = errors.New(olderHeightMessageError) ErrFutureMessage = errors.New(futureHeightMessageError) ErrSelfProposal = errors.New(selfProposalError) ErrOlderStepRound = errors.New(olderStepRoundError) ErrUnexpectedPacemakerCase = errors.New(unexpectedPacemakerCaseError) ErrConsensusMempoolFull = errors.New(consensusMempoolFullError) ErrApplyBlock = errors.New(applyBlockError) ErrPrepareBlock = errors.New(prepareBlockError) ErrCommitBlock = errors.New(commitBlockError) ErrReplicaPrepareBlock = errors.New(replicaPrepareBlockError) ErrLeaderApplyBLock = errors.New(leaderErrApplyBlock) ErrSendMessage = errors.New(sendMessageError) ErrBroadcastMessage = errors.New(broadcastMessageError) ErrCreateConsensusMessage = errors.New(createConsensusMessageError) ErrHotstuffValidation = errors.New(anteValidationError) ErrNilLeaderId = errors.New(nilLeaderIdError) )
View Source
var StepToString map[HotstuffStep]string
Functions ¶
func BroadcastingMessage ¶
func BroadcastingMessage(msg *HotstuffMessage) string
func CommittingBlock ¶
func DebugHandlingHotstuffMessage ¶
func DebugHandlingHotstuffMessage(msg *HotstuffMessage) string
func DebugNodeState ¶
func DebugNodeState(state ConsensusNodeState) string
func ElectedNewLeader ¶
func ElectedSelfAsNewLeader ¶
func ErrCreateProposeMessage ¶
func ErrCreateProposeMessage(step HotstuffStep) error
func ErrCreateVoteMessage ¶
func ErrCreateVoteMessage(step HotstuffStep) error
func ErrInvalidAppHash ¶
func ErrInvalidBlockSize ¶
func ErrLeaderElection ¶
func ErrLeaderElection(msg *HotstuffMessage) error
func ErrMissingValidator ¶
func ErrQCInvalid ¶
func ErrQCInvalid(step HotstuffStep) error
func ErrUnknownConsensusMessageType ¶
func ErrUnknownConsensusMessageType(msg interface{}) error
func ErrValidatingPartialSig ¶
func GetValAddrToIdMap ¶
func GetValAddrToIdMap(validatorMap map[string]*typesGenesis.Validator) (ValAddrToIdMap, IdToValAddrMap)
func OptimisticVoteCountPassed ¶
func OptimisticVoteCountPassed(step HotstuffStep) string
func PacemakerCatchup ¶
func PacemakerInterrupt ¶
func PacemakerNewHeight ¶
func PacemakerTimeout ¶
func SendingMessage ¶
func WarnIncompletePartialSig ¶
func WarnIncompletePartialSig(ps *PartialSignature, msg *HotstuffMessage) string
func WarnMissingPartialSig ¶
func WarnMissingPartialSig(msg *HotstuffMessage) string
Types ¶
type ConsensusNodeState ¶
type IdToValAddrMap ¶
type ValAddrToIdMap ¶
Click to show internal directories.
Click to hide internal directories.