2023-02-01 16:31:10 +00:00
|
|
|
# Original block reward for miners was 50 BTC
|
|
|
|
start_block_reward = 50
|
2014-08-29 14:51:02 +00:00
|
|
|
# 210000 is around every 4 years with a 10 minute block interval
|
|
|
|
reward_interval = 210000
|
|
|
|
|
2017-08-24 16:29:06 +00:00
|
|
|
|
2014-08-29 14:51:02 +00:00
|
|
|
def max_money():
|
2023-02-01 16:31:10 +00:00
|
|
|
# 50 BTC = 50 0000 0000 Satoshis
|
|
|
|
current_reward = 50 * 10**8
|
2014-08-29 14:51:02 +00:00
|
|
|
total = 0
|
|
|
|
while current_reward > 0:
|
|
|
|
total += reward_interval * current_reward
|
|
|
|
current_reward /= 2
|
|
|
|
return total
|
|
|
|
|
|
|
|
|
2017-08-24 16:29:06 +00:00
|
|
|
print("Total BTC to ever be created:", max_money(), "Satoshis")
|