-
Notifications
You must be signed in to change notification settings - Fork 206
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
GetBlockTemplate no longer works #117
Comments
@idt-byte, thank you for reporting this 👍 I apologize for the delay, I hope @Sword-Smith can look into this (as per #116). Let’s give @Sword-Smith 3 days to respond. |
Looking into it |
Against my 0.19.1 Bitcoin Core node, this call works:
So by supplying the parameters as an anonymous type you should be able to get the call to work. If you think the interface should work differentely, let me know. |
Closing this as it works and the interface in my opinion is OK |
Hi there,
Since Bitcoin 0.13.1 (segwit), the getblocktemplate() method no longer returns anything.
I think this is due to the fact that you now need to specify a rule when calling getblocktemplate. For example, if you call:
bitcoin-cli getblocktemplate
You get this error:
To get it working, you have to pass a rule like this as an extra argument, like so:
bitcoin-cli getblocktemplate '{"rules":["segwit"]}'
I'm trying with this:
CoinService.GetBlockTemplate("'{\"rules\":[\"segwit\"]}'")
but the result is:
"{\"result\":null,\"error\":{\"code\":-1,\"message\":\"JSON value is not an object as expected\"},\"id\":1}\n"
Is there any way to pass this argument to the CoinService.GetBlockTemplate() method to get it working again?
The text was updated successfully, but these errors were encountered: