mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-22 08:08:11 +00:00
print() function for Python 3
This commit is contained in:
parent
cb1053f905
commit
3c0b24edd7
@ -3,6 +3,7 @@ start_block_reward = 50
|
||||
# 210000 is around every 4 years with a 10 minute block interval
|
||||
reward_interval = 210000
|
||||
|
||||
|
||||
def max_money():
|
||||
# 50 BTC = 50 0000 0000 Satoshis
|
||||
current_reward = 50 * 10**8
|
||||
@ -12,5 +13,5 @@ def max_money():
|
||||
current_reward /= 2
|
||||
return total
|
||||
|
||||
print "Total BTC to ever be created:", max_money(), "Satoshis"
|
||||
|
||||
print("Total BTC to ever be created:", max_money(), "Satoshis")
|
||||
|
Loading…
Reference in New Issue
Block a user