Author

Topic: Changing the supply parameters (Read 131 times)

legendary
Activity: 2912
Merit: 2066
Cashback 15%
September 04, 2018, 06:36:38 AM
#5
Code:
static const CAmount MAX_MONEY = 21000000 * COIN;

I heard that Bitcoin is limited to 64 bits internally, which limits the number of supply. 21000000 is a lot more when stored in satoshi. Is there a technical limit in the number of supply if I clone Bitcoin core and for example change chainparams.cpp to deliver 10x time more coin than the original bitcoin?

That's the technical limit for the maximum amount of the smallest unit you could reliably transfer:
https://en.wikipedia.org/wiki/9,223,372,036,854,775,807

Beyond this number you'll get an overflow. Bitcoin having a max final supply of roughly 2,100,000,000,000,000 Satoshis leaves some wiggle room for increasing the coin supply on clones (alternatively one could also increase the perceived coin supply by reducing the number of digits).
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
September 03, 2018, 11:41:46 PM
#4
Code:
static const CAmount MAX_MONEY = 21000000 * COIN;

I heard that Bitcoin is limited to 64 bits internally, which limits the number of supply. 21000000 is a lot more when stored in satoshi. Is there a technical limit in the number of supply if I clone Bitcoin core and for example change chainparams.cpp to deliver 10x time more coin than the original bitcoin?


Start by searching Bitcoin's repository for the term "subsidy" and go from there:

https://github.com/bitcoin/bitcoin/search?p=1&q=subsidy&unscoped_q=subsidy


If necessary, adjust MAX_MONEY accordingly (does not change money supply, used for sanity checks only)

https://github.com/bitcoin/bitcoin/search?q=max_money&unscoped_q=max_money
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
September 03, 2018, 01:27:40 PM
#3
Thanks for the advices


Start by searching Bitcoin's repository for the term "subsidy" and go from there:

https://github.com/bitcoin/bitcoin/search?p=1&q=subsidy&unscoped_q=subsidy


If necessary, adjust MAX_MONEY accordingly (does not change money supply, used for sanity checks only)

https://github.com/bitcoin/bitcoin/search?q=max_money&unscoped_q=max_money
legendary
Activity: 2912
Merit: 2066
Cashback 15%
September 03, 2018, 05:42:55 AM
#2
Start by searching Bitcoin's repository for the term "subsidy" and go from there:

https://github.com/bitcoin/bitcoin/search?p=1&q=subsidy&unscoped_q=subsidy


If necessary, adjust MAX_MONEY accordingly (does not change money supply, used for sanity checks only)

https://github.com/bitcoin/bitcoin/search?q=max_money&unscoped_q=max_money
full member
Activity: 615
Merit: 154
CEO of Metaisland.gg and W.O.K Corp
September 03, 2018, 02:47:54 AM
#1
Let's say that would like to make a Bitcoin clone that would create 1 Million coin every year... where should I modify the bitcoin core source code to achieve this goal?
Jump to: