-
Notifications
You must be signed in to change notification settings - Fork 795
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
Websockets - subscribe to votes #1908
Websockets - subscribe to votes #1908
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.
Great feature, this is going to be far, far better than vote log parsing.
{ | ||
// Do not insert the given raw data to keep old prefix support | ||
representatives.insert (result_l.to_account ()); | ||
} |
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.
Can we log if the account doesn't decode correctly? It seems like on a type-o someone could be confused as to why it's not working.
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.
Yeah makes more sense to log, thanks! Also logging if the resulting filter is empty.
Note to change documentation which warned about this.
So, for now, have only Updated documentation WebSockets.zip |
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
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.
Looking good
Merged @guilhermelawless's markup to https://github.com/nanocurrency/nano-node/wiki/WebSockets |
Related: #1901 .
Added the ability to filter by representative as well, very similarly to the other filtering options. I think this one has no performance penalties, just a O(1) search in an unordered_set.
A good filter would also be
rebroadcasting_only
or a minimum weight. What do you think?