-
Notifications
You must be signed in to change notification settings - Fork 38.7k
RPC: fix generatetoaddress failing to parse address #7797
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
Conversation
|
utACK |
|
How come the rpc test pass without this fix? |
|
The RPC tests don't use bitcoin-cli. At all. |
|
The RPC tests do the conversion to JSON on the python side, I think; they
don't use bitcoin-cli (which is where the bug is).
|
|
I also think that is right: the RPC tests test the RPC server, so should be using it directly. Ofc it may be good to have a few separate tests for bitcoin-cli. Or a unit test for function |
199dc2e to
60361ca
Compare
|
added a unit test calling |
|
@mruddy That's awesome! |
60361ca RPC: fix generatetoaddress failing to parse address and add unit test (mruddy)
60361ca RPC: fix generatetoaddress failing to parse address and add unit test (mruddy)
60361ca RPC: fix generatetoaddress failing to parse address and add unit test (mruddy)
The new RPC
generatetoaddressdidn't seem to work for me both from the command line and from the Qt debug window console.This change makes it work for me.
For example, I kept getting similar to this (I tried various quoting etc... too):
Reference: #7671