Skip to content

Commit

Permalink
Merge pull request #753 from klim0v/m3-dev
Browse files Browse the repository at this point in the history
refactor get rewards before block
  • Loading branch information
Klimov Sergey committed Mar 29, 2022
2 parents 6c2417a + 9c4eaff commit 33c18b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coreV2/rewards/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewReward() *Reward {
return &Reward{startHeight: 9150000, totalEmissionBig: helpers.StringToBigInt(TotalEmission)}
}
func (r *Reward) GetBeforeBlock(blockHeight uint64) *big.Int {
before := helpers.StringToBigInt("2423599954000000000000000000")
before := helpers.StringToBigInt("2842199955000000000000000000")
for i := uint64(1); i <= blockHeight; i++ {
before.Add(before, r.GetRewardForBlock(i))
}
Expand Down

0 comments on commit 33c18b4

Please sign in to comment.