diff options
| author | Andrew Chow <[email protected]> | 2017-07-17 15:43:12 -0700 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2017-09-27 11:27:26 -0400 |
| commit | f77f0e4825e17fdda5984ce556a1102e32e7af72 (patch) | |
| tree | 0c806fc449508d4b642d69a5c763c1f41b18bdfc /src | |
| parent | Merge #11031: [rpc] deprecate estimatefee (diff) | |
| download | discoin-f77f0e4825e17fdda5984ce556a1102e32e7af72.tar.xz discoin-f77f0e4825e17fdda5984ce556a1102e32e7af72.zip | |
Add warnings field to getblockchaininfo
Diffstat (limited to 'src')
| -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 46f4f1632..099e4825d 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; } |