Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.67 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.67 KB

Understanding Bitcoin Halving

The POSIX shell script halving.sh contains all the logic needed to compute Bitcoin halving data in following format per line:

<block> <subsidy> <year>

For example:

5670000         37 2116

Read it like this: From block 5670000 the subsidy will be 37 satoshi and it should happen approximately in year 2116.

The sum-sats.sh and sum-total.sh scripts process the output of halving.sh.

Examples:

$ ./sum-sats.sh
2099999997690000
$ ./sum-total.sh 
99.99999989%

So eventually there will be almost 21 million bitcoin. One bitcoin is one hundred million satoshi.

1 BTC = 100 000 000 sat

Not a single satoshi will ever disappear*. The transaction fees are mined by the miners and recycled this way. When the subsidy will be 0, the miners will get only the fees paid by Bitcoin users in the transactions (a.k.a. reward).

* There is actually a possibility that the miner will not issue a coinbase transaction or will ask for less than what they could (see first link in the end). And there is a possibility the coins are burned in a provable way using OP_RETURN.

Links