Remove local code

pull/1870/head
Rongjian Lan 5 years ago
parent e79ba5fe88
commit 9353092ad4
  1. 4
      consensus/quorum/one-node-staked-vote.go
  2. 4
      shard/committee/assignment.go

@ -16,8 +16,8 @@ import (
var (
twoThird = numeric.NewDec(2).Quo(numeric.NewDec(3))
ninetyPercent = numeric.MustNewDecFromStr("0.90")
harmonysShare = numeric.MustNewDecFromStr("0.90") // Change back to 0.68
stakersShare = numeric.MustNewDecFromStr("0.10") // Change back to 0.32
harmonysShare = numeric.MustNewDecFromStr("0.68")
stakersShare = numeric.MustNewDecFromStr("0.32")
totalShare = numeric.MustNewDecFromStr("1.00")
)

@ -116,13 +116,9 @@ func eposStakedCommittee(
for i := range candidates {
validator, err := stakerReader.ReadValidatorData(candidates[i])
validatorStake := big.NewInt(0)
utils.Logger().Print("TEST-VALIDATOR")
utils.Logger().Print(validator)
for _, delegation := range validator.Delegations {
validatorStake.Add(validatorStake, delegation.Amount)
}
utils.Logger().Print("TEST-VALIDATOR2")
utils.Logger().Print(validatorStake)
if err != nil {
return nil, err
}

Loading…
Cancel
Save