Skip to main content

What Is a Hard Fork and How Can It Prevent a 51% Attack?

A hard fork is a radical change to a blockchain's protocol that makes previously invalid blocks and transactions valid, or vice-versa. In the context of a 51% attack, a hard fork can be used to switch to a new mining algorithm that is resistant to the attacker's hardware.

This would render the attacker's hardware useless and make it impossible for them to continue the attack. A hard fork can also be used to reverse the attacker's transactions, but this is a more controversial measure as it violates the principle of immutability.

How Can a PoS Network Recover from a Successful 51% Attack through Social Consensus or a Hard Fork?
What Is the Difference between a Soft Fork and a Hard Fork?
Differentiate between a ‘Soft Fork’ and a ‘Hard Fork’ in Cryptocurrency
Could a ‘Fork’ of the Cryptocurrency to a New, Secure Algorithm Prevent a Total Economic Collapse of Its Ecosystem?