In this section, we’ll take a closer look at two very important parts (and participants) of the Bitcoin network that were first introduced in Module 5:
Bitcoin Nodes: Gatekeepers of validation whose main job is to keep a copy of the Bitcoin ledger, and to make sure that all transactions are valid and that everyone follows the same rules. By distributing this job among many people worldwide, Bitcoin stays strong against potential fraud without relying on a centralized authority. Nodes help keep the system trustworthy and true to its decentralized ethos, where no one person or group has too much power over the rest.
Bitcoin Miners: Architects of security who solve cryptographic puzzles by using powerful computers and electricity. They check and confirm transactions, making sure everything is secure. Their computational work helps make the ledger (or blockchain) resistant to any bad by making the alteration of the blockchain expensive in energy terms.
Together, Bitcoin nodes and miners work as a team to maintain a decentralized, secure, and strong system — a truly novel monetary system that people all around the world can rely on. Let's explore these roles in more detail to understand how they contribute to the Bitcoin protocol.
9.1 Bitcoin Nodes and Miners
Bitcoin nodes may sound technical, but they are simply software that keeps a copy of the Bitcoin blockchain on a computer. The blockchain is a shared record of all Bitcoin transactions.
When you run your own node, you verify Bitcoin transactions yourself instead of trusting someone else. This gives you more independence and helps keep the Bitcoin network decentralized.
You can think of a Bitcoin node as a digital traffic officer with a few important jobs.
It keeps a copy of the blockchain, which is the history of all Bitcoin transactions.
Nodes connect with other nodes around the world and share information. One example is the list of new transactions waiting to be confirmed, which is called the mempool.
Nodes check that every transaction follows Bitcoin’s rules. If a transaction is invalid, the node rejects it.
Nodes also help new nodes join the network by sharing the blockchain with them. However, every new node still checks all the rules independently.
Anyone can run a node by installing software such as Bitcoin Core and downloading the blockchain. Once it is set up, the node continues to receive new blocks roughly every 10 minutes and verifies them before adding them to its copy of the blockchain.
Running a node helps make the Bitcoin network more secure and decentralized, because more people are independently verifying the system.
What Is a Bitcoin Node?
The purpose of mining is not the creation of new bitcoin; that’s the incentive system. Mining is the mechanism by which Bitcoin’s security is decentralized. Andreas M. Antonopoulos
Miners collect unconfirmed transactions, form a block, and use energy to find a key that adds and secures the block.
Miners compete to add the next block of transactions to the blockchain. To do this, they must find a special number that creates a valid block hash. You can imagine it like searching for the right key among billions of possibilities. The first miner to find the correct hash wins the race and earns the right to add their block to the blockchain.
When a miner finds a valid hash, they share their block with the network. Other miners quickly verify that the solution is correct. If it is, the block is added to the blockchain, helping keep Bitcoin’s public ledger secure.
Miners earn bitcoin in two ways:
Block rewards: New bitcoin are created and given to the miner who successfully adds a block to the blockchain.
Transaction fees: When people send bitcoin, they include a small fee. The miner who adds the block receives the fees from the transactions included in that block.
Bitcoin Halvings
2009
2012
2016
2020
2024
50 BTC
25 BTC
12.5 BTC
6.25 BTC
3.125 BTC
Miners’ rewards for completing one block halve every 210,000 blocks, about every four years.
Bitcoin has a fixed maximum supply of 21,000,000 bitcoin, but all of them were not created when Bitcoin started. Instead, new bitcoin are gradually introduced into circulation through mining.
When miners successfully add a new block of transactions to the Bitcoin network, they receive a block reward in bitcoin. In the early days of Bitcoin, this reward was 50 bitcoin per block. This reward encouraged people to use computing power and electricity to help secure the network.
About every 210,000 blocks (roughly every 4 years), the block reward is cut in half. This event is called the halving. The halving slows down the creation of new bitcoin and helps ensure that the total supply will never exceed 21 million. Over time, this makes bitcoin increasingly scarce.
Circulating supply refers to the total available amount of a currency. With Bitcoin, the total circulating supply is the number of coins that have been mined and are incirculation at any given time.
The Bitcoin supply schedule is the predetermined and public plan for the release of new bitcoin into circulation, designed to maintain Bitcoin’s scarcity over time.
After each halving event, the bitcoin reward that miners receive for adding a block is cut in half. This reduces the rate at which new bitcoins are created.
Miners still earn transaction fees from the transactions included in the block they mine. Over time, these fees are expected to become a larger part of miners’ income.
Halvings are built into the Bitcoin protocol and happen automatically about every four years. Because of this, Bitcoin’s supply schedule is predictable and transparent.
The table shows upcoming halvings, including the approximate date, the block number when they occur, the new block reward, and the percentage of the total bitcoin supply that will have been mined.
Event
Date
Block
Reward
Mined
5th Halving
2028
1,050,000
1.5625 BTC
98.44 %
6th Halving
2032
1,260,000
0.78125 BTC
99.22 %
7th Halving
2036
1,470,000
0.390625 BTC
99.61 %
As more bitcoin are mined, the circulating supply keeps increasing until the maximum supply of 21,000,000 bitcoins is reached, which is expected around the year 2140. Because fewer new bitcoins are created over time, if demand increases, the price of Bitcoin can rise. This also encourages miners to keep securing the network by contributing their computing power.
What is a valid block hash in Bitcoin?
In Bitcoin, miners compete to find a special code called a block hash. This code identifies a block of transactions and allows it to be added to the blockchain.
Each block contains information about recent transactions and also includes the hash of the previous block. This links every block together, forming a chain from the very first block (the Genesis Block) to the most recent one.
A hash works like a digital fingerprint for the data in the block. If any information in the block were changed, the fingerprint would change as well. This makes it easy for anyone to verify that the blockchain’s transaction history has not been altered and helps keep the network secure.
Satoshi Nakamoto, the creator of Bitcoin, mined the Genesis Block, which unlocked a total of 50 bitcoin.
The Race to Mine a Block
Miners compete to find a valid block hash. The first miner to find one gets to add the new block to the blockchain and receive a bitcoin reward.
To be valid, the block’s hash must be lower than a number set by the network called the difficulty target. Because hashes are random, miners must keep trying different inputs until they find one that works.
If too many miners are competing, blocks would be found too quickly. If too few miners are participating, blocks would take too long to find. To keep the system running smoothly, Bitcoin automatically adjusts the difficulty every 2,016 blocks (about every two weeks).
This adjustment ensures that, on average, a new block is added to the blockchain about every 10 minutes.
The difficulty level in Bitcoin mining measures how hard it is to find a valid block hash. The network adjusts this difficulty every 2,016 blocks (about every two weeks) so that new blocks are added to the blockchain about every 10 minutes. The higher the difficulty, the harder it is for miners to find a valid block.
By finding a valid block hash, a miner proves they have done the work required to add a new block to the blockchain. This process is called Proof of Work (PoW). It is the security mechanism that allows Bitcoin to confirm transactions and add new blocks to the blockchain. The miner who finds the valid hash first earns a reward in bitcoin, which includes the block reward and the transaction fees from the transactions included in that block.
Proof of Work (PoW) helps keep Bitcoin secure by making it extremely expensive for anyone to try to cheat or take control of the network. Instead, it is far more profitable to follow the rules.
Miners play four main roles:
Collect transactions: Miners choose transactions that have been sent to the network and place them into a candidate block.
Perform Proof of Work: Miners compete to solve a difficult mathematical puzzle by finding a valid block hash.
Broadcast the block: The first miner to find a valid solution shares the new block with the network.
Earn rewards: If the block is valid, it is added to the blockchain and the miner receives newly created bitcoin plus transaction fees.
Many miners around the world try to create the next block at the same time. When one miner finds a valid solution, the network checks the block. If everything is correct, it is added to the blockchain. Other competing blocks are discarded. This process keeps the network in agreement and prevents double-spending.
Miners are computers that help maintain and update Bitcoin’s ledger.
They collect transactions and group them into a block. Then they run the block’s data through a hashing algorithm to create a unique code called a hash.
Miners repeat this process many times, searching for a hash that meets Bitcoin’s rules. The first miner to find a valid hash gets newly created bitcoin as a reward, and their block is added to the blockchain.
Each block’s hash also connects it to the previous block. If someone tried to change a past transaction, the hashes would no longer match, and the network would reject the altered chain. This is what keeps Bitcoin’s ledger secure.
9.2 What Is the Mempool?
The mempool, short for “memory pool,” is like a waiting room for Bitcoin transactions. When you send bitcoin, your transaction is first broadcast to the network and placed in the mempool.
You can think of it like waiting in line at a restaurant. Your name goes on a list, and you wait until a table is available. In the same way, your transaction waits in the mempool until a miner includes it in a block.
Bitcoin nodes check each new transaction to make sure it is valid and that the bitcoin being spent has not already been used. If the transaction is valid, it stays in the mempool until it is confirmed.
Miners choose transactions from the mempool and include them in new blocks. Usually, transactions with higher fees are chosen first.
Once a transaction is included in a block, it becomes confirmed and is permanently recorded on the Bitcoin blockchain.
Activity: Exploring the Mempool
This activity exposes students to a free and open-source tool that does not require technical skills to use. It is useful for Bitcoiners at all levels, from beginner to experienced.
Key Points
Mempool refers to the list of unconfirmed transactions maintained by each Bitcoin node, not a specific service or platform.
This is no single, universal mempool. Mempool.space is one of many.
Mempool.space is open-sourced and well known for being an easy-to-use visual block explorer. It provides real time data on unconfirmed transactions, fee rates, and other network activity.
Student Tip
Mempool.space does much more than visualize blocks. Explore other parts of the Bitcoin ecosystem: e.g., Lightning, mining, the hash rate, pools, and block space "goggles".
9.3 How Transactions Work
Now that you understand public and private keys, as well as the roles of nodes and miners, here’s how a Bitcoin transaction works from start to finish.
Adam wants to send bitcoin to Gerardo. He creates a transaction with Gerardo’s address, the amount to send, and a fee.
Adam signs the transaction with his private key to prove ownership.
He broadcasts the transaction to the Bitcoin network.
Nodes receive it and check that it follows the rules, including verifying the signature and that Adam has enough bitcoin.
If valid, the transaction is shared across the network and added to the mempool, where pending transactions wait.
Miners pick transactions from the mempool and include them in a block they try to mine.
When a miner successfully mines a block, it is shared with the network and checked by other nodes.
If valid, the block is added to the blockchain. Gerardo receives the bitcoin.
As more blocks are added, the transaction gains confirmations, making it more secure.
Once included in a block, the transaction is confirmed. Adam cannot spend that bitcoin again, and Gerardo can spend what he received in a new transaction.
Transaction & fee selected → Signed by wallet and sent → Distributed by nodes → Miner adds transaction to block template → Miner wins Proof-of-Work contest → New block is validated → New block is distributed by nodes