-
Notifications
You must be signed in to change notification settings - Fork 455
Implement peer banning mechanism - Closes #3343 #3664 #3665
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add banning integration test or it's still too early?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just two comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're not properly passing the config parameters to the network module and later to the library. Please, rebase your branch to the feature.
@@ -168,6 +169,63 @@ describe('Integration tests for P2P library', () => { | |||
}); | |||
}); | |||
|
|||
describe('Peer banning mechanism', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice test cases 👍
What was the problem?
No mechanism was in place for penalizing peers bad behavior as per LIP 0004.
How did I fix it?
Added banning functionality to P2P library.
How to test it?
Review checklist