Skip to content
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

#2149: Resolve JSON RPC 2.0 non-compliance #3209

Merged

Conversation

WhoNeedszZz
Copy link
Contributor

Currently, the JSON RPC requests and responses are not compliant with the spec as the server only accepts strings.
This change is non-breaking as it simply adds the ability to understand integers as expected.
Any old code continuing to only send string requests will continue to work as before.

Resolves #2149

Currently, the JSON RPC requests and responses are not compliant with the spec as the server only accepts strings.
This change is *non-breaking* as it simply adds the ability to understand integers as expected.
Any old code continuing to only send string requests will continue to work as before.
@hashmap
Copy link
Contributor

hashmap commented Jan 28, 2020

Test would be beneficial for this PR not just to test the current impl but also to make sure that this case is not broken in the future

@WhoNeedszZz
Copy link
Contributor Author

Ordinarily, yes, but this was discussed in Keybase. If that doesn't satisfy, then feel free to add to the discussion.

Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @WhoNeedszZz, thank you for the PR :). Looking good 👍 . As mentioned by @hashmap above, tests would be beneficial here. I think a simple serialize/deserialize unit tests would probably do here. Thanks!

Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved based on the fact that tests are currently being working on #3210. LGTM 🍾

@quentinlesceller quentinlesceller merged commit 1527802 into mimblewimble:master Jan 28, 2020
@WhoNeedszZz WhoNeedszZz deleted the #2149-jsonrpc2-compliance branch January 28, 2020 22:20
quentinlesceller added a commit that referenced this pull request Jan 28, 2020
quentinlesceller added a commit that referenced this pull request Jan 28, 2020
@WhoNeedszZz WhoNeedszZz restored the #2149-jsonrpc2-compliance branch January 28, 2020 23:03
@WhoNeedszZz WhoNeedszZz deleted the #2149-jsonrpc2-compliance branch January 29, 2020 03:32
@antiochp antiochp mentioned this pull request Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stratum server accepts only string ids
3 participants