diff options
| author | Philip Kaufmann <[email protected]> | 2013-01-03 22:06:18 +0100 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2013-01-06 03:42:40 +0100 |
| commit | 8ffbd6c3789843cb024a3ee425ac4cc0482eaeb7 (patch) | |
| tree | 6c6ca803e1f6460f114720bf8473efea0f87087f /src/qt/qtipcserver.h | |
| parent | Merge pull request #2110 from Diapolo/addrbook (diff) | |
| download | discoin-8ffbd6c3789843cb024a3ee425ac4cc0482eaeb7.tar.xz discoin-8ffbd6c3789843cb024a3ee425ac4cc0482eaeb7.zip | |
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.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/qt/qtipcserver.h b/src/qt/qtipcserver.h index cccf200b2..f775f272c 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[]); |