How the Bitcoin Halving works
Hey all, I'm a crypto lover and have been one for close to a decade. 👋 I spoke with Ted recently and he suggested I share some of my Bitcoin related posts here, so I thought I'd start with this one on the Bitcoin Halving. It's from my blog here and you can also find it in my crypto community. This post is on how the Bitcoin Halving works from a technical standpoint, let me know your thoughts in the comments ... **Every 210,000 blocks, around 4 years, Bitcoin's block rewards get halved.** TLDR: - Bitcoin Halvings are pre-programmed and halve the block rewards every 4 years. Earlier this year at block number 840,000 we had the 4th halving! - The halving code is incredibly simple and elegant, it’s only 6 lines of code and you can learn how it works by reading below. - The result is that Bitcoin’s supply curve approximates precious metals like gold, with most of the coins mined early and them being harder to mine over time. - Price has historically gone up after a halving, one of the key factors is the impact on miners who are forced to sell less BTC. - This past halving we also had the release of Bitcoin Runes, a new fungible token standard on Bitcoin created by the Casey Rordamor who created Ordinals. If you’ve been in Bitcoin long enough you’ll know most of this, but you may not have taken a look at the code behind it as we will below. . **Bitcoin Halving** Bitcoin is programmed to produce 1 new block on average every 10 minutes. For each new block mined, miners are allowed to reward themselves a maximum “block subsidy” in a transaction known as the “coinbase transaction” that sits at the start of a block and essentially creates new Bitcoin out of nothing. This coinbase transaction is super important because it’s what introduces new Bitcoin into the overall system and is known as mining new Bitcoin! In principle miners can introduce less than the maximum “subsidy” but that would be silly because they’d be rewarding themselves less, so they practically always mine the full block reward.