aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2017-07-17 15:43:12 -0700
committerAndrew Chow <achow101-github@achow101.com>2017-09-27 11:27:26 -0400
commitf77f0e4825e17fdda5984ce556a1102e32e7af72 (patch)
tree0c806fc449508d4b642d69a5c763c1f41b18bdfc /src/rpc/blockchain.cpp
parentef8340d25f7c5dd5682bdecea97ce84cfce1493c (diff)
Add warnings field to getblockchaininfo
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 46f4f16321..099e4825d4 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1162,6 +1162,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
" }\n"
" }\n"
" }\n"
+ " \"warnings\" : \"...\", (string) any network and blockchain errors.\n"
"}\n"
"\nExamples:\n"
+ HelpExampleCli("getblockchaininfo", "")
@@ -1201,6 +1202,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
obj.push_back(Pair("pruneheight", block->nHeight));
}
+ obj.push_back(Pair("warnings", GetWarnings("statusbar")));
return obj;
}