diff --git a/internal/chain/reward.go b/internal/chain/reward.go index 62b04ee72..9e56d41b6 100644 --- a/internal/chain/reward.go +++ b/internal/chain/reward.go @@ -197,8 +197,11 @@ func AccumulateRewardsAndCountSigs( allSignersShare := numeric.ZeroDec() for j := range payable { - voterShare := votingPower.Voters[payable[j].BLSPublicKey].OverallPercent - allSignersShare = allSignersShare.Add(voterShare) + voter := votingPower.Voters[payable[j].BLSPublicKey] + if !voter.IsHarmonyNode { + voterShare := voter.OverallPercent + allSignersShare = allSignersShare.Add(voterShare) + } } for beaconMember := range payable { // TODO Give out whatever leftover to the last voter/handle @@ -298,8 +301,11 @@ func AccumulateRewardsAndCountSigs( allSignersShare := numeric.ZeroDec() for j := range payableSigners { - voterShare := votingPower.Voters[payableSigners[j].BLSPublicKey].OverallPercent - allSignersShare = allSignersShare.Add(voterShare) + voter := votingPower.Voters[payableSigners[j].BLSPublicKey] + if !voter.IsHarmonyNode { + voterShare := voter.OverallPercent + allSignersShare = allSignersShare.Add(voterShare) + } } for j := range payableSigners {