diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-06-10 11:44:48 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-06-10 15:01:20 +0300 |
commit | d1ae7c0355662481a7d181a0a458284936d53eb1 (patch) | |
tree | 55d250c43634c6a224d92944e22692bcf03efeff /src/rpc/net.cpp | |
parent | 38e33aa481cefbe12c50f344bae190c0d95fb489 (diff) | |
download | bitcoin-d1ae7c0355662481a7d181a0a458284936d53eb1.tar.xz |
Make GetWarnings() return bilingual_str
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r-- | src/rpc/net.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index e29aa03695..df1e0fe623 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -22,6 +22,7 @@ #include <util/strencodings.h> #include <util/string.h> #include <util/system.h> +#include <util/translation.h> #include <validation.h> #include <version.h> #include <warnings.h> @@ -548,7 +549,7 @@ static UniValue getnetworkinfo(const JSONRPCRequest& request) } } obj.pushKV("localaddresses", localAddresses); - obj.pushKV("warnings", GetWarnings(false)); + obj.pushKV("warnings", GetWarnings(false).original); return obj; } |