diff options
author | Andrew Chow <achow101-github@achow101.com> | 2017-07-17 15:43:12 -0700 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2017-09-27 11:27:26 -0400 |
commit | f77f0e4825e17fdda5984ce556a1102e32e7af72 (patch) | |
tree | 0c806fc449508d4b642d69a5c763c1f41b18bdfc /src/rpc/blockchain.cpp | |
parent | ef8340d25f7c5dd5682bdecea97ce84cfce1493c (diff) |
Add warnings field to getblockchaininfo
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r-- | src/rpc/blockchain.cpp | 2 |
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; } |