Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[rpc] fix verbose argument for getblock in bitcoin-cli #10747
Conversation
fanquake
added the
RPC/REST/ZMQ
label
Jul 5, 2017
|
I agree, we should not allow aliases (If possible, something API compatibility could require it) . Should we then get completely rid of the alias here: https://github.com/bitcoin/bitcoin/blob/master/src/rpc/blockchain.cpp#L1542 The alias in general works, it's just the bitcoin-cli's JSON string-to-bool conversion that failed. |
|
utACK 58e9864 |
|
Not to blow a small fix into a big change, but is it possible to more easily ensure we dont break this stuff in the future (also generally issues in having typos between the server registration and client registration here scares me cause most of it is untested). Maybe the easiest way is to just add a python or bash script that checks for consistency ala our documentation-required-for-options checks? |
Yes, absolutely agree that there should be better testing (bitcoin-cli seems to be entirely untested). Can we open an issue to track that and treat this as a quick fix for the recent regression? |
TheBlueMatt
referenced
this pull request
Jul 5, 2017
Open
Automated testing of mappings in RPC server registration and client arg conversion #10751
|
The alias isn't about taste, but compatibility. |
|
utACK 58e9864 |
laanwj
merged commit 58e9864
into
bitcoin:master
Jul 10, 2017
1 check passed
laanwj
added a commit
that referenced
this pull request
Jul 10, 2017
|
|
laanwj |
9edda0c
|
jnewbery commentedJul 5, 2017
Using the
verboseoption withgetblockin bitcoin-cli has been broken since #8704:In general, I think that adding aliases because some people find argument names distasteful is a bad idea since it leads to subtle bugs like this.
However, that functionality has already been merged in so I'm not going to try to undo it. This is the simplest fix for restoring the previous behavior.
@achow101 @luke-jr