Skip to content

Commit

Permalink
Merge pull request #772 from klim0v/dev-hotfix1
Browse files Browse the repository at this point in the history
Dev hotfix1
  • Loading branch information
danil-lashin committed Apr 12, 2022
2 parents 3d7e390 + a827999 commit 067a356
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coreV2/minter/blockchain.go
Expand Up @@ -431,7 +431,8 @@ func (blockchain *Blockchain) EndBlock(req abciTypes.RequestEndBlock) abciTypes.
if h := blockchain.appDB.GetVersionHeight(V3); h > 0 && height > h {
emission := blockchain.appDB.Emission()
if emission == nil {
blockchain.appDB.SetEmission(blockchain.rewardsCounter.GetBeforeBlock(height - 1))
emission = blockchain.rewardsCounter.GetBeforeBlock(height - 1)
blockchain.appDB.SetEmission(emission)
}
if emission.Cmp(blockchain.rewardsCounter.TotalEmissionBig()) == -1 {
reward, _ = blockchain.stateDeliver.App.Reward()
Expand Down

0 comments on commit 067a356

Please sign in to comment.