diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-09-24 15:11:27 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-09-29 10:20:05 +0200 |
commit | fa23308e9aad70c99a31f91d8556f1876ea02c04 (patch) | |
tree | b506f748bfb0d71bde4c34500abf0bc0455040b6 /src/qt/paymentserver.cpp | |
parent | e36aa351a31cde0f95ce957b2ff593a97f91eb6d (diff) |
Remove gArgs global from CreateChainParams to aid testing
Diffstat (limited to 'src/qt/paymentserver.cpp')
-rw-r--r-- | src/qt/paymentserver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp index 8679ced685..6c2db52f63 100644 --- a/src/qt/paymentserver.cpp +++ b/src/qt/paymentserver.cpp @@ -94,12 +94,12 @@ void PaymentServer::ipcParseCommandLine(int argc, char* argv[]) SendCoinsRecipient r; if (GUIUtil::parseBitcoinURI(arg, &r) && !r.address.isEmpty()) { - auto tempChainParams = CreateChainParams(CBaseChainParams::MAIN); + auto tempChainParams = CreateChainParams(gArgs, CBaseChainParams::MAIN); if (IsValidDestinationString(r.address.toStdString(), *tempChainParams)) { SelectParams(CBaseChainParams::MAIN); } else { - tempChainParams = CreateChainParams(CBaseChainParams::TESTNET); + tempChainParams = CreateChainParams(gArgs, CBaseChainParams::TESTNET); if (IsValidDestinationString(r.address.toStdString(), *tempChainParams)) { SelectParams(CBaseChainParams::TESTNET); } |