FuelLabs / fuel-core

Rust full node implementation of the Fuel v2 protocol.
Other
58.3k stars 2.74k forks source link

Add a libp2p rate limiting behavior #1677

Open Voxelot opened 4 months ago

Voxelot commented 4 months ago

related: #1663

Since we can't be overly strict on our reputation checks for mempool gossip, we should implement a p2p rate limiter which applies equally to all gossipped transactions.

MitchTurner commented 1 month ago

I think we need a little clarification here.

I understand that gossiped transactions will sometimes fail for non-malicious reasons. This means that we shouldn't punish the nodes that broadcast those transactions. This seems to be an alternative to punishing those nodes while still keeping the network somewhat secure.

I'm just having a hard time understanding the sentence:

we should implement a p2p rate limiter which applies equally to all gossipped transactions

What does "equally" mean here, for example.