aionnetwork / aion_pool2

aion pool implementation with c# core.
13 stars 15 forks source link

Update hardcoded block reward value to reflect change in monetary policy #21

Open dipeshnuco opened 5 years ago

dipeshnuco commented 5 years ago

Aion's monetary policy has been updated to reflect the yearly 1% inflation, which has resulted in a change in the block reward from 1497989283243310185 to 1513791761415494031 from block no 3346000.

The block reward number used for pool payout calculation seems to be hardcoded to 1497989283243310185 and hence needs to be updated so that the pools are doing the correct payouts.

The hardcoded value is in this file - https://github.com/aionnetwork/aion_pool2/blob/master/aion_pool/src/MiningCore/Blockchain/Aion/AionUtils.cs ; could be in other places too

For reference: • Till Block - 3346000; Mining Rewards – 1.497989283243310185 AION • From Block - 3346001; Mining Rewards – 1.513791761415494031 AION