deroproject / derohe

DERO Homomorphic Encryption Blockchain Protocol
Other
208 stars 82 forks source link

fix miniblock spam bug #111

Closed Slixe closed 1 year ago

Slixe commented 1 year ago

Any malicious node can retrieve all mini blocks from chain and send them all to all connected peers to increase bandwith use, and to consume CPU by verifying all these mini blocks.

The fix consist to reject all stale mini blocks to prevent such spam because nodes getting such old mini blocks are going to broadcast them too spamming the whole network.

Because flip_top function has a return at beginning, I don't verify that the mini block height is not greater than stable limit chain.

Slixe commented 1 year ago

Closed as integrated in last commit.