En este video se expone como se calcula el Total supply o maximo de monedas de Bitcoin u otras criptomonedas. Gracias.
COIN = 100000000000000000000000000
reward = 50
halving = 210000
nsubsidy = reward * halving
nheight = 0
total = 0
while (nsubsidy != 0):
nsubsidy = reward + halving
nsubsidy >>= nheight /halving
nheight += 1
total += nsubsidy
print('Total supply: ' , total/float(COIN))