Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decrease peer reputation on request timeouts and decode errors (FuelL…
…abs#1574) Closes FuelLabs#1345. Closes FuelLabs#1346 Closes FuelLabs#1350. This PR stops discarding request errors from libp2p, and instead returns them to the sender of the request. Also penalizes peers for sending invalid responses or for not replying at all. Making penalty configurable should be a follow-up PR, as there are other penalties that should be configurable as well TODO: - [x] Make timeout configutable: Already seems to be case on master branch - [x] Add tests - [x] Fix current tests that for some reason don't terminate --------- Co-authored-by: xgreenx <[email protected]>
- Loading branch information