Just to check what would take for that limit to be changed. (not that I want to be changed, quite the opposite). I know the total number of bitcoin reward is halved every 4 years.

So does the verifying nodes check if the number of rewarded bitcoins match the distribution schedule?

up vote 10 down vote accepted

Every node in the Bitcoin network checks every block it receives and validates any transactions in it. As coin generation is a transaction that is included in the block, it is also checked. Same as a node would not accept a transaction that does not balance its inputs and outputs (for example, by spending more coins than it has), neither would it accept a block reward different, than the one that is scheduled to occur (50 coins currently, half of that for some number of blocks, and then other fractions of that amount). The nodes know what rewards to expect based on the block number, as it is set to half based on that number.

To change it you would have to (convince people to) change all the clients, exactly like any other protocol change.

The software in the bitcoin client verifies that each transaction follows the algorithm that is part of the protocol.

Now even if the developers of the client were to somehow conclude that increasing the limit was a good idea and were to then push that client out for distribution, those holding bitcoins would likely not accept the new client. There would then be a fork in the blockchain as the limit increase would devalue the currency already issued and therefore it would be rational to those holding bitcoins already would protect the value of their currency by not accepting transactions from the new fork.

So to change the limit you not only need to get the developers to make the changes that fork the blockchain but also you need to get exchanges and merchants to accept transactions using the fork -- something that, in this case, is irrational.

  • Bitcoin source code: github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L1053 – Stephen Gornick Apr 12 '13 at 8:26
  • @StephenGornick In order to see the code that limits bitcoin to 21 million, am I supposed to read down from line 1053? Is there an english translation of the code anywhere for non-coders? thanks – Alex Millar Jul 22 '14 at 22:21
  • Well, the source code is continually changing, so a pointer to a specific line of code in "tip" (the latest code that exist) will be obsolete in a short amount of time. – Stephen Gornick Jul 23 '14 at 15:24
  • 1
    The code to look at is the GetBlockValue function. The block subsidy started out at 50 but is halved every 210,000 blocks. So the english translation basically is "if block 1 through 210,000 then award 50 XBT per-block, if block is 210,001 through 420,000 then award 25 XBT per-block, if block is 420,001 through 630,000 then award 12.5 XBT, etc. Eventually (like a hundred some years from now) the reward is so small, there is no block award remaining to issue. – Stephen Gornick Jul 23 '14 at 15:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.