-
Notifications
You must be signed in to change notification settings - Fork 777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DevP2P: add snap protocol #1883
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -4,9 +4,10 @@ import { EventEmitter } from 'events' | |||
import { devp2pDebug } from '../util' | |||
import { Peer, DISCONNECT_REASONS } from '../rlpx/peer' | |||
|
|||
export enum EthProtocol { | |||
export enum EthProtocol { // What does this represent? |
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.
This represents the protocol running on top of RLPx. Could probably just be renamed to Protocol
, but that may conflict with the base class? RlpxProtocol
could also work, but not sure if we want to rename/breaking change.
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.
We could rename this enum to ProtocolType
?
Two tests for the SNAP protocol are proposed in #1893 |
Please do not merge here before last round of Relatively directly after the releases we actually should merge to clear the field for the latest |
@jochem-brouwer @holgerd77 this is good to merge in my opinion |
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!
* Add tests for SNAP protocol * Fix linting issues * Remove unneeded switch block
Ok, then let's do it. 😃 |
Closes #1876
TODO: