Skip to content

Commit 89ec3a2

Browse files
committed
MainNet is the special case for the GUI
1 parent d33f69a commit 89ec3a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qt/bitcoin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,12 @@ int main(int argc, char *argv[])
448448
fSelParFromCLFailed = true;
449449
}
450450
#ifdef ENABLE_WALLET
451-
// Parse URIs on command line -- this can affect TestNet() / RegTest() mode
451+
// Parse URIs on command line -- this can affect Params()
452452
if (!PaymentServer::ipcParseCommandLine(argc, argv))
453453
exit(0);
454454
#endif
455455

456-
bool isaTestNet = TestNet() || RegTest();
456+
bool isaTestNet = Params().NetworkID() != CChainParams::MAIN;
457457

458458
// Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory
459459

0 commit comments

Comments
 (0)