aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorWilliam Casarin <[email protected]>2019-07-13 08:34:49 -0700
committerWilliam Casarin <[email protected]>2019-07-18 13:38:28 -0700
commita50d9e6c0b8e8144d3deec58ec2e3449ba081151 (patch)
tree5e6ebef1b7cd7afbfe78cd1a3db973776dd5af1d /src/httpserver.cpp
parentMerge #16334: test: rpc_users: Also test rpcauth.py with password. (diff)
downloaddiscoin-a50d9e6c0b8e8144d3deec58ec2e3449ba081151.tar.xz
discoin-a50d9e6c0b8e8144d3deec58ec2e3449ba081151.zip
rpcwallet: default include_watchonly to true for watchonly wallets
The logic before would only include watchonly addresses if it was explicitly set in the rpc argument. This changes the logic like so: If the include_watchonly argument is missing, check the WALLET_FLAG_DISABLE_PRIVATE_KEYS flag to determine if we're working with a watchonly wallet. If so, default include_watchonly to true. If the include_watchonly argument is explicit set to false, we still disable them from the listing. Although this would always return nothing, it might be still useful in situations where you want to explicitly filter out watchonly addresses regardless of what wallet you are dealing with. Signed-off-by: William Casarin <[email protected]>
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions