How Does the Longest Chain Rule Prevent Double-Spending in PoW?

The longest chain rule dictates that all honest nodes must follow the blockchain with the most cumulative Proof-of-Work (the longest chain). If a double-spend attempt occurs, it creates a temporary fork.

Honest miners will continue building on the chain they first saw, making the attacker's chain shorter and eventually discarded by the network, thus invalidating the double-spend.

How Does ‘Nakamoto Consensus’ Enforce the Longest Chain Rule?
What Is the ‘Longest Chain Rule’ in Bitcoin?
How Does the ‘Longest Chain Rule’ in Proof-of-Work Facilitate the Selfish Mining Attack?
What Is the Difference between the “Longest Chain Rule” and the “Heaviest Chain Rule” in PoW?
What Is the “Longest Chain Rule” and How Does It Prevent Confirmed Double-Spending?
How Do Forks, Both Accidental and Malicious, Relate to the Longest Chain Rule?
What Is the ‘Longest Chain Rule’ in Proof-of-Work?
What Is the Relationship between the Block Reward and the Security Provided by the Longest Chain Rule?

Glossar