diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-01-06 05:22:34 -0800 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-01-06 05:22:34 -0800 |
| commit | 51b05d0dca1310a7c5c61e1b3a84285bbeb71eb2 (patch) | |
| tree | 71f9feee341bb4dfcf324a966b5ef5eed354f19b /src/qt/bitcoin.cpp | |
| parent | Merge pull request #2143 from Diapolo/ThreadSafeMessageBox_caption (diff) | |
| parent | Bitcoin-Qt: give testnet a unique IPC message queue name (diff) | |
| download | discoin-51b05d0dca1310a7c5c61e1b3a84285bbeb71eb2.tar.xz discoin-51b05d0dca1310a7c5c61e1b3a84285bbeb71eb2.zip | |
Merge pull request #2147 from Diapolo/mq_name_testnet
Bitcoin-Qt: give testnet a unique IPC message queue name
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index dbdfade0b..c3701ced7 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -113,6 +113,14 @@ static void handleRunawayException(std::exception *e) #ifndef BITCOIN_QT_TEST int main(int argc, char *argv[]) { + // Command-line options take precedence: + ParseParameters(argc, argv); + + if(GetBoolArg("-testnet")) // Separate message queue name for testnet + strBitcoinURIQueueName = BITCOINURI_QUEUE_NAME_TESTNET; + else + strBitcoinURIQueueName = BITCOINURI_QUEUE_NAME_MAINNET; + // Do this early as we don't want to bother initializing if we are just calling IPC ipcScanRelay(argc, argv); @@ -126,9 +134,6 @@ int main(int argc, char *argv[]) // Install global event filter that makes sure that long tooltips can be word-wrapped app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app)); - // Command-line options take precedence: - ParseParameters(argc, argv); - // ... then bitcoin.conf: if (!boost::filesystem::is_directory(GetDataDir(false))) { |