Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: remotemass on February 15, 2013, 09:15:15 PM



Title: Parts of the code related to the 21 million limit
Post by: remotemass on February 15, 2013, 09:15:15 PM
Can someone please show us images of snapshots of all parts of code of the earlier bitcoin client that you think are particularly related to the 21 million limit imposition.

It would be very much appreciated.


Title: Re: Parts of the code related to the 21 million limit
Post by: Pieter Wuille on February 15, 2013, 09:18:27 PM
Here (https://github.com/bitcoin/bitcoin/blob/v0.7.2/src/main.cpp#L909), in the v0.7.2 source code, is the function that calculates the reward per block at a given height. The 21M limit comes from adding all the resulting rewards.


Title: Re: Parts of the code related to the 21 million limit
Post by: d'aniel on February 15, 2013, 09:23:45 PM
I feel like that simple little function could make for some good geeky marketing :)