From 7db45a54c7811383c6fc26803a99db5a7ebcf05d Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Sat, 23 Nov 2019 16:25:54 -0800 Subject: [PATCH] disable 100 percent check --- consensus/quorum/one-node-staked-vote.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/consensus/quorum/one-node-staked-vote.go b/consensus/quorum/one-node-staked-vote.go index fef74cd1e..d8569d44f 100644 --- a/consensus/quorum/one-node-staked-vote.go +++ b/consensus/quorum/one-node-staked-vote.go @@ -191,12 +191,12 @@ func (v *stakedVoteWeight) SetVoters( Str("Raw-Staked", v.stakedTotal.String()). Msg("Total staked") - switch { - case totalStakedPercent.Equal(totalShare) == false: - return nil, errSumOfVotingPowerNotOne - case ourPercentage.Add(theirPercentage).Equal(totalShare) == false: - return nil, errSumOfOursAndTheirsNotOne - } + //switch { + //case totalStakedPercent.Equal(totalShare) == false: + // return nil, errSumOfVotingPowerNotOne + //case ourPercentage.Add(theirPercentage).Equal(totalShare) == false: + // return nil, errSumOfOursAndTheirsNotOne + //} // Hold onto this calculation v.ourVotingPowerTotal = ourPercentage