Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Reject unnecessary messages - Closes #4424 #4426

Merged
merged 8 commits into from
Oct 25, 2019

Conversation

ishantiw
Copy link
Contributor

@ishantiw ishantiw commented Oct 24, 2019

What was the problem?

Peers can send unnecessary or internal messages that are not part of the protocol.

How did I solve it?

Rejecting the message and banning the peer.

How to manually test it?

Send messages like INVALID or something and see if the receiving node rejects the connection

Review checklist

… development

* 'development' of https://github.com/LiskHQ/lisk-sdk:
  P2P test add peerBook check at connection create and cleanup
  Remove unnecessary .only()
  Update describe() format  in connection_create.ts
  P2P introduce Functional testing
  P2P introduce Functional testing
elements/lisk-p2p/src/constants.ts Show resolved Hide resolved
elements/lisk-p2p/src/peer/base.ts Outdated Show resolved Hide resolved
elements/lisk-p2p/src/p2p.ts Show resolved Hide resolved
@ishantiw ishantiw requested a review from diego-G October 24, 2019 14:18
elements/lisk-p2p/src/constants.ts Outdated Show resolved Hide resolved
elements/lisk-p2p/src/p2p.ts Show resolved Hide resolved
@ishantiw ishantiw force-pushed the 4424-reject_unnecessary_messages branch from 878a621 to c42c4dc Compare October 24, 2019 14:23
@ishantiw ishantiw requested a review from diego-G October 24, 2019 14:26
@shuse2 shuse2 merged commit ee623ca into development Oct 25, 2019
@shuse2 shuse2 deleted the 4424-reject_unnecessary_messages branch October 25, 2019 08:42
@ishantiw ishantiw restored the 4424-reject_unnecessary_messages branch November 8, 2019 13:43
@shuse2 shuse2 deleted the 4424-reject_unnecessary_messages branch November 18, 2019 09:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reject unnecessary messages and ban a peer
4 participants