Title: 21 million coins question (programming related) Post by: Watermellon on April 07, 2013, 06:29:25 AM Is the 21 million coin limit hard coded into the program?
Or is it just a result of the reward halving every few years? Could someone easily change the bitcoin source code to make an inflationary coin that has no upper bound, and the reward never halves? Or would major changes have to be made to the source? (I know an int64 can store a number as big as 18,446,744,073,709,551,615) Title: Re: 21 million coins question (programming related) Post by: Oshero on April 07, 2013, 06:31:18 AM That's ppcoin you're describing.
Look it up. :D Title: Re: 21 million coins question (programming related) Post by: DannyHamilton on April 07, 2013, 04:43:26 PM Is the 21 million coin limit hard coded into the program? Yes. Or is it just a result of the reward halving every few years? Yes. Could someone easily change the bitcoin source code to make an inflationary coin that has no upper bound, and the reward never halves? Yes. Or would major changes have to be made to the source? No. (But you would have to take into consideration the possibility that an amount could be sent/stored/received that exceeded the number of bytes that the program uses to store it). (I know an int64 can store a number as big as 18,446,744,073,709,551,615) That would be uint64_t int64_t can only store a number as big as 9,223,372,036,854,775,807 Seeing as the smallest integer unit of currency represented in the source code is the Satoshi, maximum bitcoin is a bit less than 2,100,000,000,000,000 Title: Re: 21 million coins question (programming related) Post by: kelly153 on April 07, 2013, 04:45:52 PM Is the 21 million coin limit hard coded into the program? Yes, it is hard. Very hard.Title: Re: 21 million coins question (programming related) Post by: maxmint on April 07, 2013, 04:47:11 PM I started a thread about this a while ago: https://bitcointalk.org/index.php?topic=153330.0
Title: Re: 21 million coins question (programming related) Post by: whiskers75 on April 07, 2013, 04:49:42 PM Is the 21 million coin limit hard coded into the program? Or is it just a result of the reward halving every few years? Could someone easily change the bitcoin source code to make an inflationary coin that has no upper bound, and the reward never halves? Or would major changes have to be made to the source? (I know an int64 can store a number as big as 18,446,744,073,709,551,615) *cough* Litecoin *cough* :D |