Skip to content

Commit 73ac7ab

Browse files
committed
Move ui_interface to bitcoin_server.a
There is no need for it in the utility libraries or tools. Put it in init.cpp, and in the tests separately (as they can't link init).
1 parent 5090303 commit 73ac7ab

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

src/bitcoin-cli.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
#include "init.h"
88
#include "rpcclient.h"
99
#include "rpcprotocol.h"
10-
#include "ui_interface.h" /* for _(...) */
1110
#include "chainparamsbase.h"
1211

1312
#include <boost/filesystem/operations.hpp>
1413

14+
#define _(x) std::string(x) /* Keep the _() around in case gettext or such will be used later to translate non-UI */
15+
1516
using namespace std;
1617
using namespace boost;
1718
using namespace boost::asio;

src/init.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ enum BindFlags {
6262
};
6363

6464
static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
65+
CClientUIInterface uiInterface;
6566

6667
//////////////////////////////////////////////////////////////////////////////
6768
//

src/qt/bitcoinstrings.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ QT_TRANSLATE_NOOP("bitcoin-core", ""
8989
QT_TRANSLATE_NOOP("bitcoin-core", ""
9090
"How thorough the block verification of -checkblocks is (0-4, default: 3)"),
9191
QT_TRANSLATE_NOOP("bitcoin-core", ""
92+
"If paytxfee is not set, include enough fee so transactions are confirmed on "
93+
"average within n blocks (default: 1)"),
94+
QT_TRANSLATE_NOOP("bitcoin-core", ""
9295
"In this mode -genproclimit controls how many blocks are generated "
9396
"immediately."),
9497
QT_TRANSLATE_NOOP("bitcoin-core", ""
@@ -195,6 +198,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "How many blocks to check at startup (default:
195198
QT_TRANSLATE_NOOP("bitcoin-core", "If <category> is not supplied, output all debugging information."),
196199
QT_TRANSLATE_NOOP("bitcoin-core", "Importing..."),
197200
QT_TRANSLATE_NOOP("bitcoin-core", "Imports blocks from external blk000??.dat file"),
201+
QT_TRANSLATE_NOOP("bitcoin-core", "Include IP addresses in debug output (default: 0)"),
198202
QT_TRANSLATE_NOOP("bitcoin-core", "Incorrect or no genesis block found. Wrong datadir for network?"),
199203
QT_TRANSLATE_NOOP("bitcoin-core", "Information"),
200204
QT_TRANSLATE_NOOP("bitcoin-core", "Initialization sanity check failed. Bitcoin Core is shutting down."),
@@ -203,6 +207,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -onion address: '%s'"),
203207
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -proxy address: '%s'"),
204208
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -minrelaytxfee=<amount>: '%s'"),
205209
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -mintxfee=<amount>: '%s'"),
210+
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>: '%s' (must be at least %s)"),
206211
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>: '%s'"),
207212
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount"),
208213
QT_TRANSLATE_NOOP("bitcoin-core", "Keep at most <n> unconnectable blocks in memory (default: %u)"),

src/test/test_bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <boost/filesystem.hpp>
1919
#include <boost/test/unit_test.hpp>
2020

21-
21+
CClientUIInterface uiInterface;
2222
CWallet* pwalletMain;
2323

2424
extern bool fPrintToConsole;

src/util.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include "chainparamsbase.h"
99
#include "sync.h"
10-
#include "ui_interface.h"
1110
#include "uint256.h"
1211
#include "version.h"
1312

@@ -97,7 +96,6 @@ string strMiscWarning;
9796
bool fLogTimestamps = false;
9897
bool fLogIPs = false;
9998
volatile bool fReopenDebugLog = false;
100-
CClientUIInterface uiInterface;
10199

102100
// Init OpenSSL library multithreading support
103101
static CCriticalSection** ppmutexOpenSSL;

0 commit comments

Comments
 (0)