Skip to content

Commit

Permalink
Fix initial rewards rate calculation (algorand#1908)
Browse files Browse the repository at this point in the history
This is a leftover missed when implementing the `PendingResidueRewards` fix. The initial `RewardsRate` calculation also need to take into account the `MinBalance`, and avoid including these funds in the `RewardsRate`.

The workaround is to fund the rewards pool within the first 500,000 rounds.
  • Loading branch information
tsachiherman committed Feb 18, 2021
1 parent f4d4837 commit 0afe247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,8 @@ func initConsensusProtocols() {
vFuture.CompactCertWeightThreshold = (1 << 32) * 30 / 100
vFuture.CompactCertSecKQ = 128

// enable the InitialRewardsRateCalculation fix
vFuture.InitialRewardsRateCalculation = true
// Enable transaction Merkle tree.
vFuture.PaysetCommit = PaysetCommitMerkle

Expand Down

0 comments on commit 0afe247

Please sign in to comment.