The timewarp fix is the most consequential part of BIP54. The attack: miners can set the timestamp of the last block in a 2016-block difficulty period up to 2 hours ahead, then set the first block of the next period 2 hours behind — creating a false difficulty calculation that allows mining the next 2016 blocks in much less than 2 weeks.
This was first formally documented by Friedenbach in 2018. The attack could theoretically allow a 51% miner to halve difficulty repeatedly until blocks come in seconds. BIP54 closes it with a simple timestamp constraint.
The timewarp fix is the most consequential part of BIP54. The attack: miners can set the timestamp of the last block in a 2016-block difficulty period up to 2 hours ahead, then set the first block of the next period 2 hours behind — creating a false difficulty calculation that allows mining the next 2016 blocks in much less than 2 weeks.
This was first formally documented by Friedenbach in 2018. The attack could theoretically allow a 51% miner to halve difficulty repeatedly until blocks come in seconds. BIP54 closes it with a simple timestamp constraint.