diff options
author | fanquake <fanquake@gmail.com> | 2019-11-04 14:39:34 -0500 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2019-11-04 14:39:34 -0500 |
commit | 3d05d332693ec860626fc77e6ba50dec94e4e83c (patch) | |
tree | f464918c860615932c5288105934da9b27cea142 /src/bitcoin-cli.cpp | |
parent | 94a26b192f187cb50bf1ac1775b23f2b03f772b1 (diff) |
cli: fix -getinfo output when compiled with no wallet
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index d7b6891503..592fcbe8dd 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -265,7 +265,7 @@ public: result.pushKV("proxy", batch[ID_NETWORKINFO]["result"]["networks"][0]["proxy"]); result.pushKV("difficulty", batch[ID_BLOCKCHAININFO]["result"]["difficulty"]); result.pushKV("chain", UniValue(batch[ID_BLOCKCHAININFO]["result"]["chain"])); - if (!batch[ID_WALLETINFO].isNull()) { + if (!batch[ID_WALLETINFO]["result"].isNull()) { result.pushKV("walletversion", batch[ID_WALLETINFO]["result"]["walletversion"]); result.pushKV("balance", batch[ID_WALLETINFO]["result"]["balance"]); result.pushKV("keypoololdest", batch[ID_WALLETINFO]["result"]["keypoololdest"]); |