Merge pull request #3413 from rlan35/fix_allsigs

Fix quorum check in localnet staking
pull/3414/head
Rongjian Lan 4 years ago committed by GitHub
commit 0f466bbc47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      consensus/quorum/one-node-staked-vote.go

@ -188,7 +188,7 @@ func (v *stakedVoteWeight) QuorumThreshold() numeric.Dec {
// IsAllSigsCollected ..
func (v *stakedVoteWeight) IsAllSigsCollected() bool {
return v.SignersCount(Commit) == v.ParticipantsCount()
return v.voteTally.Commit.tally.Equal(numeric.NewDec(1))
}
func (v *stakedVoteWeight) SetVoters(

Loading…
Cancel
Save