Post
Topic
Board Development & Technical Discussion
Re: Changing Max Supply after released
by
MarkLenner
on 29/03/2018, 13:37:09 UTC
Hi Folks,

one technical question: is it possible to change the Max Supply of a coin after the it was released and people started to mine it?

I ask you this because for a typo I inserted a zero too much in the definition of the constant MAX_MONEY

I wrote:

src/amount.h:static const CAmount MAX_MONEY = 650000000 * COIN;

instead of:

src/amount.h:static const CAmount MAX_MONEY = 65000000 * COIN;

Thanks your kind help

MAX_MONEY does not have any effect on the Maximum Supply of the coin.

The Maximum Supply is determined by the number of coins that are created with each block.

MAX_MONEY is just used for comparison to prevent overflow conditions in the code.

ok thanks. So how to calculate the Max Supply? For example I see BTC has 21,000,000. How be sure mine will be 65,000,000? I use 50 coins per block with halving every 4 years like bitcoin does