JPMorgan CEO questions 21 million bitcoin cap and Yahoo got it wrong; but YOU shouldn't, lets look…

· Medium ·

2 min read Original article ↗

jadi

Based on this Yahoo story; Jamie Dimon, the CEO of the JPMorgan has challenged Bitcoins 21M cap on Monday, saying:

“I’ll just challenge the group to one other thing: how do you know it ends at 21 million? You all read the algorithms? You guys all believe that? I don’t know, I’ve always been a skeptic of stuff like that,”

Note: I have explained this with some more details in a video:

Not surprising from a Banks CEO but the surprising piece comes afterwards in the Yahoo news when they link to the consensus/amount.h as a proof of 21M Cap in the bitcoin source. This file clearly denies being the proof of “total money supply”:

Press enter or click to view image in full size

Although this is kind of acceptable in a general article in an financial site; but lets have a deeper look to the source code and see where this 21M comes from.

Our main clue is in the src/valudation.cpp file and specifically in this function:

Press enter or click to view image in full size

This function is responsible to calculate the block reward; where nHeight is the height of the blockchain (at the moment we are trying to mine the nHeight block), COIN is 100M which is the amount of Satoshis in a COIN and the consensusParams.nSubsidyHalvingInterval is the Interval in which Halving is happening; which is defined as 210'000 in chainparams.cpp :

Press enter or click to view image in full size

can you find where the 2 week difficulty recalculations comes from?

If we want to calculate the total amount of bitcoin supply, we have to emulate the block creation algorithm (the one that GPMorgans CEO have not checked) and calculate how many coins each single block generates as miners fee (=subsidy) and add them up. A simple python code will do the job:

Press enter or click to view image in full size

See? checking the algorithm is easy and reading source codes are doable. Hope you enjoyed and are encouraged to go check some source code by yourself.

You can fine me on Youtube, Twitter.