aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-06-17 10:56:52 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-07-24 16:32:53 +0300
commit0b86e517ad733c8740c519332aa4c0e9035dbaab (patch)
treeb2e0e4ed7b07400231d9323419b0e8eeb3576490 /src/wallet
parent0626b8cbdf0aa971500eb5613c7ab4096c496966 (diff)
Refactor out translation.h
This is a prerequisite for introducing bilingual error messages. Note: #includes are arranged by clang-format-diff.py script.
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/db.cpp1
-rw-r--r--src/wallet/init.cpp5
-rw-r--r--src/wallet/load.cpp1
-rw-r--r--src/wallet/rpcdump.cpp4
-rw-r--r--src/wallet/wallet.cpp1
5 files changed, 8 insertions, 4 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index b5f90deabd..e07ea9887c 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -6,6 +6,7 @@
#include <wallet/db.h>
#include <util/strencodings.h>
+#include <util/translation.h>
#include <stdint.h>
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index 4c327c77ae..a86da98d71 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -7,11 +7,12 @@
#include <interfaces/chain.h>
#include <net.h>
#include <outputtype.h>
-#include <util/system.h>
#include <util/moneystr.h>
-#include <walletinitinterface.h>
+#include <util/system.h>
+#include <util/translation.h>
#include <wallet/wallet.h>
#include <wallet/walletutil.h>
+#include <walletinitinterface.h>
class WalletInit : public WalletInitInterface {
public:
diff --git a/src/wallet/load.cpp b/src/wallet/load.cpp
index 54aa12dba8..1e9b166285 100644
--- a/src/wallet/load.cpp
+++ b/src/wallet/load.cpp
@@ -8,6 +8,7 @@
#include <interfaces/chain.h>
#include <scheduler.h>
#include <util/system.h>
+#include <util/translation.h>
#include <wallet/wallet.h>
bool VerifyWallets(interfaces::Chain& chain, const std::vector<std::string>& wallet_files)
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 7e973194d9..b820efc4d9 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -16,9 +16,9 @@
#include <util/bip32.h>
#include <util/system.h>
#include <util/time.h>
-#include <wallet/wallet.h>
-
+#include <util/translation.h>
#include <wallet/rpcwallet.h>
+#include <wallet/wallet.h>
#include <stdint.h>
#include <tuple>
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 452d4f7a6a..4681dc2d44 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -25,6 +25,7 @@
#include <util/fees.h>
#include <util/moneystr.h>
#include <util/rbf.h>
+#include <util/translation.h>
#include <util/validation.h>
#include <validation.h>
#include <wallet/coincontrol.h>