aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-10 11:44:48 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-10 15:01:20 +0300
commitd1ae7c0355662481a7d181a0a458284936d53eb1 (patch)
tree55d250c43634c6a224d92944e22692bcf03efeff /src/interfaces
parent38e33aa481cefbe12c50f344bae190c0d95fb489 (diff)
downloadbitcoin-d1ae7c0355662481a7d181a0a458284936d53eb1.tar.xz
Make GetWarnings() return bilingual_str
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/node.cpp2
-rw-r--r--src/interfaces/node.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp
index 7995d8d7b0..d420788dbe 100644
--- a/src/interfaces/node.cpp
+++ b/src/interfaces/node.cpp
@@ -71,7 +71,7 @@ public:
std::string getNetwork() override { return Params().NetworkIDString(); }
void initLogging() override { InitLogging(); }
void initParameterInteraction() override { InitParameterInteraction(); }
- std::string getWarnings() override { return GetWarnings(true); }
+ bilingual_str getWarnings() override { return GetWarnings(true); }
uint32_t getLogCategories() override { return LogInstance().GetCategoryMask(); }
bool baseInitialize() override
{
diff --git a/src/interfaces/node.h b/src/interfaces/node.h
index fad84789cc..877a40568f 100644
--- a/src/interfaces/node.h
+++ b/src/interfaces/node.h
@@ -10,6 +10,7 @@
#include <net_types.h> // For banmap_t
#include <netaddress.h> // For Network
#include <support/allocators/secure.h> // For SecureString
+#include <util/translation.h>
#include <functional>
#include <memory>
@@ -81,7 +82,7 @@ public:
virtual void initParameterInteraction() = 0;
//! Get warnings.
- virtual std::string getWarnings() = 0;
+ virtual bilingual_str getWarnings() = 0;
// Get log flags.
virtual uint32_t getLogCategories() = 0;