What is Nostr?
augeas / augean stable
npub1000…vup6
2023-02-12 13:09:00

augeas on Nostr: Python script to compute exact total bitcoins available: 20,999,999.9769 Bitcoins, ...

Python script to compute exact total bitcoins available: 20,999,999.9769 Bitcoins, that is 2,099,999,997,690,000 Satoshis

Miners will keep working until around the year 2140.
Can you help confirm the final bock height?
#bitcoin #plebchain

#!/usr/bin/env python3
# coding: utf8
# Original block reward for miners was 50 BTC
start_block_reward = 50
# 210000 blocks is mined every 4 years with a 10 minute interval
reward_interval = 210000
def max_money():
# 50 BTC = 50 0000 0000 Satoshis
current_reward = 50 * 10**8
reward_satoshi = 0
block_height = 0
half_decay = 0
while current_reward > 0:
print("current reward:", current_reward)
reward_satoshi += reward_interval * current_reward
current_reward //= 2
block_height += reward_interval
half_decay += 1
print("total blocks:", block_height)
print("total Satoshis:", reward_satoshi)
return half_decay, block_height, reward_satoshi
periods, height, total = max_money()
print()
print("Total half-decaying periods:", periods)
print("Block height:", height)
print("Total BTC to ever be created:", total, "Satoshis")


Author Public Key
npub1000999kkehfz43htfkufqfma7qetrcpt9h4weszkrn3gggmr7zvs7avup6