What is Nostr?
augeas / augean stable
npub1000…vup6
2023-02-13 03:10:18
in reply to nevent1q…rcvg

augeas on Nostr: ``` #!/usr/bin/env python3 # coding: utf8 # Original block reward for miners was 50 ...

```
#!/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