Bitcoin Forum
June 20, 2024, 01:53:48 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Changing the supply parameters  (Read 132 times)
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
September 03, 2018, 06: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?

HeRetiK
Legendary
*
Offline Offline

Activity: 2968
Merit: 2111



View Profile
September 03, 2018, 09:42:55 AM
Merited by ss890 (2)
 #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
TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
September 03, 2018, 05: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

TheWolf666 (OP)
Full Member
***
Offline Offline

Activity: 615
Merit: 154


CEO of Metaisland.gg and W.O.K Corp


View Profile WWW
September 04, 2018, 03:41:46 AM
 #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

HeRetiK
Legendary
*
Offline Offline

Activity: 2968
Merit: 2111



View Profile
September 04, 2018, 10: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).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!