|
|
@ -13,21 +13,21 @@ import ( |
|
|
|
// PeerRoundState contains the known state of a peer.
|
|
|
|
// NOTE: Read-only when returned by PeerState.GetRoundState().
|
|
|
|
type PeerRoundState struct { |
|
|
|
Height int64 // Height peer is at
|
|
|
|
Round int // Round peer is at, -1 if unknown.
|
|
|
|
Step RoundStepType // Step peer is at
|
|
|
|
StartTime time.Time // Estimated start of round 0 at this height
|
|
|
|
Proposal bool // True if peer has proposal for this round
|
|
|
|
ProposalBlockPartsHeader types.PartSetHeader //
|
|
|
|
ProposalBlockParts *cmn.BitArray //
|
|
|
|
ProposalPOLRound int // Proposal's POL round. -1 if none.
|
|
|
|
ProposalPOL *cmn.BitArray // nil until ProposalPOLMessage received.
|
|
|
|
Prevotes *cmn.BitArray // All votes peer has for this round
|
|
|
|
Precommits *cmn.BitArray // All precommits peer has for this round
|
|
|
|
LastCommitRound int // Round of commit for last height. -1 if none.
|
|
|
|
LastCommit *cmn.BitArray // All commit precommits of commit for last height.
|
|
|
|
CatchupCommitRound int // Round that we have commit for. Not necessarily unique. -1 if none.
|
|
|
|
CatchupCommit *cmn.BitArray // All commit precommits peer has for this height & CatchupCommitRound
|
|
|
|
Height int64 `json:"height"` // Height peer is at
|
|
|
|
Round int `json:"round"` // Round peer is at, -1 if unknown.
|
|
|
|
Step RoundStepType `json:"step"` // Step peer is at
|
|
|
|
StartTime time.Time `json:"start_time"` // Estimated start of round 0 at this height
|
|
|
|
Proposal bool `json:"proposal"` // True if peer has proposal for this round
|
|
|
|
ProposalBlockPartsHeader types.PartSetHeader `json:"proposal_block_parts_header"` //
|
|
|
|
ProposalBlockParts *cmn.BitArray `json:"proposal_block_parts"` //
|
|
|
|
ProposalPOLRound int `json:"proposal_pol_round"` // Proposal's POL round. -1 if none.
|
|
|
|
ProposalPOL *cmn.BitArray `json:"proposal_pol"` // nil until ProposalPOLMessage received.
|
|
|
|
Prevotes *cmn.BitArray `json:"prevotes"` // All votes peer has for this round
|
|
|
|
Precommits *cmn.BitArray `json:"precommits"` // All precommits peer has for this round
|
|
|
|
LastCommitRound int `json:"last_commit_round"` // Round of commit for last height. -1 if none.
|
|
|
|
LastCommit *cmn.BitArray `json:"last_commit"` // All commit precommits of commit for last height.
|
|
|
|
CatchupCommitRound int `json:"catchup_commit_round"` // Round that we have commit for. Not necessarily unique. -1 if none.
|
|
|
|
CatchupCommit *cmn.BitArray `json:"catchup_commit"` // All commit precommits peer has for this height & CatchupCommitRound
|
|
|
|
} |
|
|
|
|
|
|
|
// String returns a string representation of the PeerRoundState
|
|
|
|