More denial-of-service prevention code to review



Summary:

The Bitcoin team has implemented a pull request to prevent denial-of-service attacks from orphan blocks. Orphan blocks are valid blocks that are not in the main blockchain and were stored in memory by the Bitcoin client. The new patch rejects orphan blocks before the last blockchain lock-in and requires them to have a plausible proof-of-work. If a node sends enough obviously-not-part-of-the-main-chain blocks, it will be disconnected and banned. Orphan blocks with too-low proof-of-work are ignored, and if a node sends ten of them it is disconnected/banned. This implementation will make the attack too expensive to attempt as generating valid blocks at the current difficulty would cost a lot.


Updated on: 2023-06-04T20:13:57.065026+00:00