Skip to content

Commit 3d05d33

Browse files
committed
cli: fix -getinfo output when compiled with no wallet
1 parent 94a26b1 commit 3d05d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitcoin-cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class GetinfoRequestHandler: public BaseRequestHandler
265265
result.pushKV("proxy", batch[ID_NETWORKINFO]["result"]["networks"][0]["proxy"]);
266266
result.pushKV("difficulty", batch[ID_BLOCKCHAININFO]["result"]["difficulty"]);
267267
result.pushKV("chain", UniValue(batch[ID_BLOCKCHAININFO]["result"]["chain"]));
268-
if (!batch[ID_WALLETINFO].isNull()) {
268+
if (!batch[ID_WALLETINFO]["result"].isNull()) {
269269
result.pushKV("walletversion", batch[ID_WALLETINFO]["result"]["walletversion"]);
270270
result.pushKV("balance", batch[ID_WALLETINFO]["result"]["balance"]);
271271
result.pushKV("keypoololdest", batch[ID_WALLETINFO]["result"]["keypoololdest"]);

0 commit comments

Comments
 (0)