-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
NetworkEvent object #1936
NetworkEvent object #1936
Conversation
Code Climate has analyzed commit 23adaca and detected 0 issues on this pull request. View more on Code Climate. |
peerDisconnect = "peer:disconnect", | ||
gossipStart = "gossip:start", | ||
gossipStop = "gossip:stop", | ||
gossipHeartbeat = "gossipsub:heartbeat", |
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 thought we had convention to UPPER_CASE enums?
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.
Not sure. I just followed the convention used in ChainEvent
:
export enum ChainEvent { |
made an object to put the strings for the network events in one place.