diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-05-29 15:22:32 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-05-29 15:24:26 +0200 |
commit | 3fd0c2336a12a1945cc2b8c09d821a0461b00f32 (patch) | |
tree | 215242b93195f942b8f32e9e7d86d67b05d69142 /contrib | |
parent | 56fe3dc235a0226643c90b55cf052b2fdde8475b (diff) | |
parent | 13c3a659c0089f5ec2efeb98480dcd5041ec1c16 (diff) | |
download | bitcoin-3fd0c2336a12a1945cc2b8c09d821a0461b00f32.tar.xz |
Merge #13273: Qt/Bugfix: fix handling default wallet with no name
13c3a659c0089f5ec2efeb98480dcd5041ec1c16 Qt/Bugfix: fix handling default wallet with no name (João Barbosa)
Pull request description:
If one loads a wallet via RPC (`loadwallet w2`), then select w2, select back to the default wallet (which is an empty string), that default wallet cannot be access through the RPC console because the current code only points to the wallet endpoint if the wallet name is not empty.
This is a quick fix that reenables accessing the default wallet in case an additional wallet has been loaded.
Using "" for the default wallet may not be ideal in other cases and it may make more sense to change it at a deeper level (wallet.cpp). See discussion here which where the reasons for the current behaviour in master:
https://github.com/bitcoin/bitcoin/pull/11687#issuecomment-370862718
@jnewbery @promag @ryanofsky
Tree-SHA512: 74b935886b4e4a6033a2f5e1f44bb69a252e31f4021e19a2054445a8e3e4db1d8ee256290850a84d8569d2d0e21412fce0170e7f0e881259156057587181ee05
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions