aboutsummaryrefslogtreecommitdiff
path: root/src/qt/qtipcserver.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-01-03 22:06:18 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-01-06 03:42:40 +0100
commit8ffbd6c3789843cb024a3ee425ac4cc0482eaeb7 (patch)
tree6c6ca803e1f6460f114720bf8473efea0f87087f /src/qt/qtipcserver.h
parent1f4fdb70f0c5791a4742aa8f59fc42cff9740cfc (diff)
downloadbitcoin-8ffbd6c3789843cb024a3ee425ac4cc0482eaeb7.tar.xz
Bitcoin-Qt: give testnet a unique IPC message queue name
- this prevents an interference with the IPC message queue (which is used for URI processing) when running a testnet and mainnet instance in parallel - to check for testnet, I had to raise the ParseParameters() call in main() to the topmost position
Diffstat (limited to 'src/qt/qtipcserver.h')
-rw-r--r--src/qt/qtipcserver.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/qt/qtipcserver.h b/src/qt/qtipcserver.h
index cccf200b2d..f775f272c2 100644
--- a/src/qt/qtipcserver.h
+++ b/src/qt/qtipcserver.h
@@ -1,8 +1,14 @@
#ifndef QTIPCSERVER_H
#define QTIPCSERVER_H
-// Define Bitcoin-Qt message queue name
-#define BITCOINURI_QUEUE_NAME "BitcoinURI"
+#include <string>
+
+// Define Bitcoin-Qt message queue name for mainnet
+#define BITCOINURI_QUEUE_NAME_MAINNET "BitcoinURI"
+// Define Bitcoin-Qt message queue name for testnet
+#define BITCOINURI_QUEUE_NAME_TESTNET "BitcoinURI-testnet"
+
+extern std::string strBitcoinURIQueueName;
void ipcScanRelay(int argc, char *argv[]);
void ipcInit(int argc, char *argv[]);