-
Notifications
You must be signed in to change notification settings - Fork 990
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
Stratum server accepts only string ids #2149
Comments
While strange to use string for int here, this is not an issue. It's also documented in the doc https://github.com/mimblewimble/grin/blob/master/doc/stratum.md. Not sure it's really important to change that. |
Well, this behaviour isn't documented at all. The JSON RPC spec says
This means that the server is not JSON RPC 2.0 compliant. What is the problem with this behaviour? Most software uses integers to track for examples shares because it's the easiest solution. Therefore this software is not compatible with the current server. On server side it should not matter, which data type was used in the client request. |
Are there any plans or ideas how to make the stratum server JSON RPC 2.0 compliant? I don't think that this is possible without breaking compatibility with some clients. |
I don't think it's a big ask to allow the server to accept an integer as well as a string for that field. Labelled issue accordingly if anyone wants to pick this up |
The stratum server does not seem to accept requests that contain non-string ids like in
{"id":2,"method":"getjobtemplate","jsonrpc":"2.0","params":null}
Using
{"id":"2","method":"getjobtemplate","jsonrpc":"2.0","params":null}
works though.The text was updated successfully, but these errors were encountered: