mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-04 23:27:02 +00:00
consensus: TimeoutTicker, skip TimeoutCommit on HasAll
This commit is contained in:
@@ -377,6 +377,10 @@ func (voteSet *VoteSet) HasTwoThirdsAny() bool {
|
||||
return voteSet.sum > voteSet.valSet.TotalVotingPower()*2/3
|
||||
}
|
||||
|
||||
func (voteSet *VoteSet) HasAll() bool {
|
||||
return voteSet.sum == voteSet.valSet.TotalVotingPower()
|
||||
}
|
||||
|
||||
// Returns either a blockhash (or nil) that received +2/3 majority.
|
||||
// If there exists no such majority, returns (nil, PartSetHeader{}, false).
|
||||
func (voteSet *VoteSet) TwoThirdsMajority() (blockID BlockID, ok bool) {
|
||||
|
||||
Reference in New Issue
Block a user