aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-03-07 22:59:30 -0800
committerjtimon <jtimon@monetize.io>2014-03-07 22:59:30 -0800
commit89ec3a29111075ff1eb8309d6a43662c492c30af (patch)
tree79723dc201067100af9a4606154f0ea2c7794ced /src/qt
parentd33f69a4474ee1ec7e998b1232203ed63426c0da (diff)
MainNet is the special case for the GUI
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 162009f5de..652d39a5ce 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -448,12 +448,12 @@ int main(int argc, char *argv[])
fSelParFromCLFailed = true;
}
#ifdef ENABLE_WALLET
- // Parse URIs on command line -- this can affect TestNet() / RegTest() mode
+ // Parse URIs on command line -- this can affect Params()
if (!PaymentServer::ipcParseCommandLine(argc, argv))
exit(0);
#endif
- bool isaTestNet = TestNet() || RegTest();
+ bool isaTestNet = Params().NetworkID() != CChainParams::MAIN;
// Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory