What Is the ‘Longest Chain Rule’ in Blockchain Consensus?

The longest chain rule, also known as the Nakamoto consensus, is a fundamental principle in Proof-of-Work blockchains. It dictates that nodes should always consider the chain with the most cumulative Proof-of-Work (i.e. the most blocks or the highest total difficulty) as the valid, canonical chain.

An attacker in a 51% attack attempts to secretly build a longer, malicious chain to replace the honest one.

What Is the ‘Longest Chain Rule’ and Why Is It Fundamental to Nakamoto Consensus?
What Is the Difference between the “Longest Chain Rule” and the “Heaviest Chain Rule” in PoW?
How Is the “Target Hash” Calculated from the Difficulty Setting?
How Is the ‘Target’ Hash Value Calculated Based on the Difficulty?
What Is the Difference between a “Share” and a “Valid Block Solution”?
What Is the “Longest Chain Rule” and Its Role in PoW Security?
What Is the “Longest Chain Rule” in a PoW System?
What Is the ‘Longest Chain Rule’ and How Does It Resolve Conflicting Blocks?

Glossar