Versions in this module Expand all Collapse all v0 v0.31.5 Apr 16, 2019 Changes in this version + const RoundStepCommit + const RoundStepNewHeight + const RoundStepNewRound + const RoundStepPrecommit + const RoundStepPrecommitWait + const RoundStepPrevote + const RoundStepPrevoteWait + const RoundStepPropose + var GotVoteFromUnwantedRoundError = errors.New("Peer has sent a vote that does not match our round for more than one round") + type HeightVoteSet struct + func NewHeightVoteSet(chainID string, height int64, valSet *types.ValidatorSet) *HeightVoteSet + func (hvs *HeightVoteSet) AddVote(vote *types.Vote, peerID p2p.ID) (added bool, err error) + func (hvs *HeightVoteSet) Height() int64 + func (hvs *HeightVoteSet) MarshalJSON() ([]byte, error) + func (hvs *HeightVoteSet) POLInfo() (polRound int, polBlockID types.BlockID) + func (hvs *HeightVoteSet) Precommits(round int) *types.VoteSet + func (hvs *HeightVoteSet) Prevotes(round int) *types.VoteSet + func (hvs *HeightVoteSet) Reset(height int64, valSet *types.ValidatorSet) + func (hvs *HeightVoteSet) Round() int + func (hvs *HeightVoteSet) SetPeerMaj23(round int, type_ types.SignedMsgType, peerID p2p.ID, blockID types.BlockID) error + func (hvs *HeightVoteSet) SetRound(round int) + func (hvs *HeightVoteSet) String() string + func (hvs *HeightVoteSet) StringIndented(indent string) string + type PeerRoundState struct + CatchupCommit *cmn.BitArray + CatchupCommitRound int + Height int64 + LastCommit *cmn.BitArray + LastCommitRound int + Precommits *cmn.BitArray + Prevotes *cmn.BitArray + Proposal bool + ProposalBlockParts *cmn.BitArray + ProposalBlockPartsHeader types.PartSetHeader + ProposalPOL *cmn.BitArray + ProposalPOLRound int + Round int + StartTime time.Time + Step RoundStepType + func (prs PeerRoundState) String() string + func (prs PeerRoundState) StringIndented(indent string) string + func (ps *PeerRoundState) Marshal() ([]byte, error) + func (ps *PeerRoundState) MarshalTo(data []byte) (int, error) + func (ps *PeerRoundState) Size() int + func (ps *PeerRoundState) Unmarshal(bs []byte) error + type RoundState struct + CommitRound int + CommitTime time.Time + Height int64 + LastCommit *types.VoteSet + LastValidators *types.ValidatorSet + LockedBlock *types.Block + LockedBlockParts *types.PartSet + LockedRound int + Proposal *types.Proposal + ProposalBlock *types.Block + ProposalBlockParts *types.PartSet + Round int + StartTime time.Time + Step RoundStepType + TriggeredTimeoutPrecommit bool + ValidBlock *types.Block + ValidBlockParts *types.PartSet + ValidRound int + 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 cmn.HexBytes + ProposalBlockHash cmn.HexBytes + StartTime time.Time + ValidBlockHash cmn.HexBytes + Votes json.RawMessage + func (rs *RoundStateSimple) Marshal() ([]byte, error) + func (rs *RoundStateSimple) MarshalTo(data []byte) (int, error) + func (rs *RoundStateSimple) Size() int + func (rs *RoundStateSimple) Unmarshal(bs []byte) error + type RoundStepType uint8 + func (rs RoundStepType) IsValid() bool + func (rs RoundStepType) String() string + type RoundVoteSet struct + Precommits *types.VoteSet + Prevotes *types.VoteSet