-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add generatetoaddress and estimatesmartfee RPC calls #1500
Add generatetoaddress and estimatesmartfee RPC calls #1500
Conversation
e9546ac
to
7c405be
Compare
rpcclient/mining.go
Outdated
return c.sendCmd(cmd) | ||
} | ||
|
||
// Generate generates numBlocks blocks to the given address and returns their hashes. |
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.
GenerateToAddress, not Generate
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.
Other than this looks good to go
LGTM |
Can we get this merged in? |
Agreed, need this too |
@Roasbeef this PR seems to be needed quite a bit by the community, Any chance of getting this in? |
|
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.
Just fix the one comment, squash and rebase, and then I will merge this in.
7c405be
to
d0fa6c6
Compare
I've squashed the commits and updated the comment. I also updated |
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.
OK
Why is POST http://my-btcd:8334
{
"jsonrpc": "2.0",
"id": "xyz",
"method": "estimatesmartfee",
"params": [
6
]
} {
"jsonrpc": "2.0",
"result": null,
"error": {
"code": -32601,
"message": "Method not found"
},
"id": "xyz"
} Running https://github.com/btcsuite/btcd/releases/tag/v0.22.0-beta |
This PR implemented this in the |
Once this PR is merged I'll open up another PR for implementing the
fundrawtransaction
RPC call. It is implemented at arcanetechnology#2, but it needsEstimateSmartFeeMode
from this PR for a clean backport.