Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugFix/economics-based-on-genesis-supply-only #2095

Merged
merged 1 commit into from
Jul 12, 2020

Conversation

sasurobert
Copy link
Contributor

fixed economics computation where the previous total supply was taken in consideration for the total to distribute, instead the genesis total supply has to be taken according to new documents.

… in consideration for the total to distribute, instead the genesis total supply has to be taken according to new documents.
@@ -116,7 +117,7 @@ func (e *economics) ComputeEndOfEpochEconomics(
totalNumBlocksInEpoch := e.computeNumOfTotalCreatedBlocks(noncesPerShardPrevEpoch, noncesPerShardCurrEpoch)

inflationRate := e.computeInflationRate(metaBlock.GetRound())
rwdPerBlock := e.computeRewardsPerBlock(prevEpochEconomics.TotalSupply, maxBlocksInEpoch, inflationRate)
rwdPerBlock := e.computeRewardsPerBlock(e.genesisTotalSupply, maxBlocksInEpoch, inflationRate)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System tests passed.

@LucianMincu LucianMincu merged commit 97713b9 into development Jul 12, 2020
@LucianMincu LucianMincu deleted the bugFix/eco-comp-based-genesis branch July 12, 2020 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants