1
1
I have question about the source code, under src/amount.h I see the max coin supply being 21.000.000 (million) under the variable called MAX_MONEY. I want to ask what other variables mean,
CAmount COIN
CAmount CENT
And I want to know how they're used. As an interest in forking coins, I am analyzing source code and I would like to see how these numbers affect the blockchain.
Here is the link.
when I am forking the coin, where do I set a max coin limit then? Also when i first launch i want to be able to sell ICOs, meaning i want small amount of coins for myself, which code does it? where do I set wallet addresses for myself (devs), I want to learn all these @AndrewChow – turmuka – 2018-01-26T07:26:02.070
To change the coin limit, you need to change the subsidy halving interval here: https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L77 and change the initial subsidy value here: https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1138. As for the other things you want, they are not part of Bitcoin Core so there isn't anything you can change to add those. You will need to figure out how to add them yourself.
– Andrew Chow – 2018-01-26T15:43:50.710