Versions in this module Expand all Collapse all v0 v0.38.3 Jan 4, 2024 Changes in this version + const RoundStepCommit + const RoundStepNewHeight + const RoundStepNewRound + const RoundStepPrecommit + const RoundStepPrecommitWait + const RoundStepPrevote + const RoundStepPrevoteWait + const RoundStepPropose + var ErrGotVoteFromUnwantedRound = errors.New("peer has sent a vote that does not match our round for more than one round") + type HeightVoteSet struct + func NewExtendedHeightVoteSet(chainID string, height int64, valSet *types.ValidatorSet) *HeightVoteSet + func NewHeightVoteSet(chainID string, height int64, valSet *types.ValidatorSet) *HeightVoteSet + func (hvs *HeightVoteSet) AddVote(vote *types.Vote, peerID p2p.ID, extEnabled bool) (added bool, err error) + func (hvs *HeightVoteSet) Height() int64 + func (hvs *HeightVoteSet) MarshalJSON() ([]byte, error) + func (hvs *HeightVoteSet) POLInfo() (polRound int32, polBlockID types.BlockID) + func (hvs *HeightVoteSet) Precommits(round int32) *types.VoteSet + func (hvs *HeightVoteSet) Prevotes(round int32) *types.VoteSet + func (hvs *HeightVoteSet) Reset(height int64, valSet *types.ValidatorSet) + func (hvs *HeightVoteSet) Round() int32 + func (hvs *HeightVoteSet) SetPeerMaj23(round int32, voteType cmtproto.SignedMsgType, peerID p2p.ID, ...) error + func (hvs *HeightVoteSet) SetRound(round int32) + func (hvs *HeightVoteSet) String() string + func (hvs *HeightVoteSet) StringIndented(indent string) string + type PeerRoundState struct + CatchupCommit *bits.BitArray + CatchupCommitRound int32 + Height int64 + LastCommit *bits.BitArray + LastCommitRound int32 + Precommits *bits.BitArray + Prevotes *bits.BitArray + Proposal bool + ProposalBlockPartSetHeader types.PartSetHeader + ProposalBlockParts *bits.BitArray + ProposalPOL *bits.BitArray + ProposalPOLRound int32 + Round int32 + StartTime time.Time + Step RoundStepType + func (prs PeerRoundState) String() string + func (prs PeerRoundState) StringIndented(indent string) string + type RoundState struct + CommitRound int32 + CommitTime time.Time + Height int64 + LastCommit *types.VoteSet + LastValidators *types.ValidatorSet + LockedBlock *types.Block + LockedBlockParts *types.PartSet + LockedRound int32 + Proposal *types.Proposal + ProposalBlock *types.Block + ProposalBlockParts *types.PartSet + Round int32 + StartTime time.Time + Step RoundStepType + TriggeredTimeoutPrecommit bool + ValidBlock *types.Block + ValidBlockParts *types.PartSet + ValidRound int32 + Validators *types.ValidatorSet + Votes *HeightVoteSet + func (rs *RoundState) CompleteProposalEvent() types.EventDataCompleteProposal + func (rs *RoundState) NewRoundEvent() types.EventDataNewRound + func (rs *RoundState) RoundStateEvent() types.EventDataRoundState + func (rs *RoundState) RoundStateSimple() RoundStateSimple + func (rs *RoundState) String() string + func (rs *RoundState) StringIndented(indent string) string + func (rs *RoundState) StringShort() string + type RoundStateSimple struct + HeightRoundStep string + LockedBlockHash bytes.HexBytes + ProposalBlockHash bytes.HexBytes + Proposer types.ValidatorInfo + StartTime time.Time + ValidBlockHash bytes.HexBytes + Votes json.RawMessage + type RoundStepType uint8 + func (rs RoundStepType) IsValid() bool + func (rs RoundStepType) String() string + type RoundVoteSet struct + Precommits *types.VoteSet + Prevotes *types.VoteSet