Original post (BTCillustrated):
https://nitter.net/BTCillustrated/status/1729679404668785006#m
Process:
-
Running a Node: The Miner must run a full Bitcoin node. This allows them to stay updated with latest state of the blockchain
-
Begin construction of a new block template
-
Select Transactions: From the pool of unconfirmed transactions, miners pick those they wish to include in the new block. Usually, tx with higher fees are prioritized.
-
Create coinbase Tx: This is the first transaction in a new block, where miners award themselves the block reward and tx fees.
-
Constructing Merkle Trees: Transactions are organized into a Merkle tree
-
Hashing for the Block Solution: Miner hashes the block's header, which includes the Merkle root, timestamp, the previous block's hash, and a nonce. The goal is to find a hash that meets the network's difficulty target
7.1. If success, submit the block
7.2. If another block is added to the chain by other miner, update block template to reflect this change and start the mining process anew.