-
Notifications
You must be signed in to change notification settings - Fork 38k
Closed
Labels
Description
Describe the issue
There is a lack of consistency with RPC boolean parameter validation. Sometimes 1 == true, sometimes 1 returns an error, sometimes true==true, sometimes true returns an error.
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:
- bitcoin-cli getrawmempool 1
- bitcoin-cli getrawmempool true
- getrawtransaction sometxid 1
- getrawtransaction sometxid true
Expected behaviour
Consistent behavior or type juggling so they both equate true.
Actual behaviour
- bitcoin-cli getrawmempool 1 //JSON value is not a boolean as expected
- bitcoin-cli getrawmempool true //works
- getrawtransaction sometxid 1 //works
- getrawtransaction sometxid true //JSON value is not an integer as expected
What version of bitcoin-core are you using?
0.13.2
Machine specs:
- OS: Ubuntu 16.04
- CPU: x86_64
- RAM: 4GB
- Disk size: 256GB
- Disk Type (HD/SDD): SSD