diff options
| author | Hennadii Stepanov <[email protected]> | 2020-06-10 11:44:48 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-06-10 15:01:20 +0300 |
| commit | d1ae7c0355662481a7d181a0a458284936d53eb1 (patch) | |
| tree | 55d250c43634c6a224d92944e22692bcf03efeff /src/rpc/blockchain.cpp | |
| parent | refactor: Make GetWarnings() bilingual_str aware internally (diff) | |
| download | discoin-d1ae7c0355662481a7d181a0a458284936d53eb1.tar.xz discoin-d1ae7c0355662481a7d181a0a458284936d53eb1.zip | |
Make GetWarnings() return bilingual_str
Diffstat (limited to 'src/rpc/blockchain.cpp')
| -rw-r--r-- | src/rpc/blockchain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index eedb1c3d7..8252af3ee 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -32,6 +32,7 @@ #include <util/ref.h> #include <util/strencodings.h> #include <util/system.h> +#include <util/translation.h> #include <validation.h> #include <validationinterface.h> #include <warnings.h> @@ -1278,7 +1279,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request) BIP9SoftForkDescPushBack(softforks, "testdummy", consensusParams, Consensus::DEPLOYMENT_TESTDUMMY); obj.pushKV("softforks", softforks); - obj.pushKV("warnings", GetWarnings(false)); + obj.pushKV("warnings", GetWarnings(false).original); return obj; } |