-
Notifications
You must be signed in to change notification settings - Fork 56
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
Bitcoin RPC not compatible with JSON-RPC 1.0 #252
Comments
Oh, that's very unexpected. Do you have any numbers/stats/etc to find out how many outdated bitcoin nodes are here? To figure out if that makes sense to fix or better to wait until they upgrade |
I don't have any numbers but I would expect a relatively high % of applications (not nodes) still using the 1.0 version of jsonrpc requests, even if the nodes are up to date. To be clear, this is not an issue connecting to Bitcoin nodes (that works) it's an issue with clients connecting to Dshackle's endpoint. |
The official RPC reference documentation still uses 1.0: https://developer.bitcoin.org/reference/rpc/getbestblockhash.html |
If that's the clients, what could possible prevent them from using the version 2.0? I mean, that's their intentional decision not a limitation of something, and they can use in the requests any version they wish. I guess it's not something that should be fixed on Dshackle side, b/c the same client may choose which version they want to use. |
Full 2.0 support in Bitcoin is WIP ATM. In my opinion 1.0 should be supported in dshackle until it's deprecated: |
That would be a bit strange to support. I mean if everything works with v2.0, and for a client it's just a matter of decision, why wait for a deprecation which could never happen. "No deprecated" is not the same as "recommended". |
Everything except projects that assume Bitcoin to be 1.0 and use it for legacy/compat reasons. I will fork then, since I have no control over the clients I'm going to use. |
When calling Bitcoin RPC requests with 1.0 version, an error is returned:
This is problematic because many Bitcoin applications and protocols still use version 1.0 for legacy and compatibility reasons.
There should be an exception for Bitcoin upstreams, or an option to disable the check.
The text was updated successfully, but these errors were encountered: