The Longest Chain Always Wins in the Bitcoin Protocol (Article 9 of 52)

This is one article in a collection of 52 articles published weekly throughout 2023 on the basics of Bitcoin.  The series is intended for people unfamiliar with Bitcoin or people wishing to enhance their understanding of the fundamentals that underpin the technology.  Please contact us, if you have any questions or comments.


As we discussed in our previous publication, the Bitcoin network is decentralized.  Consequently, there is no central authority that controls the decisions of the network and, importantly, there is no single point of failure.  Instead, the Bitcoin network is controlled by its network of nodes.

While the number of nodes operating on the system is unknown for a variety of reasons, there are more than 10,000 reachable nodes operating world-wide.  The nodes form a network and, among other things, transfer information regarding blocks and other data such as software updates.  The nodes across the network validate each newly mined block and spread the news of the newly mined block across the decentralized network.  If a miner is dishonest with regard to the block it mined, the nodes will reject the block so there is only an incentive to publicize blocks that have actually found a nonce and awarded themselves the proper block reward (currently 6.25 bitcoin per block mined plus the transaction fees) that meets the target hash value criteria.

Once a node receives news that a new block has been mined it validates that block by checking the contents of the block against a list of criteria which all must be met or else the block is rejected.  Some of the items the nodes check to confirm the block:

  1. The block structure is syntactically valid;
  2. The hash value of the block header is less than the target hash;
  3. The block timestamp is less than two hours into the future (the two hour time distance allows for an ample amount of leeway);
  4. The block size does not exceed the 1MB limit; and
  5. The block reward provided to the winning miner is correct.

If, and only if, all the criteria listed above and some other criteria that are beyond the scope of this paper are met, will the node attempt to add the block to the existing blockchain.  The node will try to place the new block on top of the parent block by looking for the previous block’s hash header.  Remember, part of the block header is the previous block’s header hash.  Once the node confirms the new block is authentic, the node will communicate the block to other nodes.  Eventually every node throughout the system will become aware of the new block.

It is possible that different miners find a hash value that meets the criteria of the target hash at or close to the same time.  In that circumstance, each miner will publicize its solution to the nodes in the system.  The Bitcoin protocol states that the chain with the greatest difficulty will be the winner (in other words the longest chain or the blockchain with the greatest height).  Temporary discrepancies in separate chains that have separate blocks are resolved when the nodes select to extend one of the chains with the next mining block. Once a block is six blocks removed from the top of the block chain (in other words six blocks have been mined after the block in question), the block is considered immutable on the blockchain

About the Author

Picture of <a href="https://cryptoustaxattorneys.com/ryan-p-moulder/" target="_blank" red="no opener">Ryan P. Moulder</a>

Ryan Moulder is the founder of Crypto US Tax Attorneys. Additionally, he serves as the General Counsel and owner at Accord Systems, LLC. Ryan received his LL.M. from Georgetown University Law Center and his J.D. from Saint Louis University School of Law. He has distinguished himself as a leader in evolving areas of tax law and has written and spoken on a variety of evolving tax law topics as it relates to compliance for individuals and companies.

Previous Publications

Share Our Information

Legal Consent

The information contained on this site is not, nor is it intended to be, legal advice. An attorney should be consulted for advice regarding your situation. Copyright © 2023 by Crypto US Tax Attorneys. All rights reserved. You may reproduce materials available at this site for your own personal use and for non-commercial distribution. All copies must include this copyright statement.

The virtual currency referenced in any publication is not intended to be investment advice. All investment strategies and investments involve risk of loss. Nothing contained in this website should be construed as investment advice. Any reference to a specific cryptocurrency's past performance is not, and should not be construed as, a recommendation or a guarantee of any specific outcome or profit.