Browse Source

Add mainnet protection

import_zecw
Aditya Kulkarni 5 years ago
parent
commit
c4e9899adc
  1. 4
      src/recurring.cpp

4
src/recurring.cpp

@ -349,7 +349,9 @@ Recurring* Recurring::instance = nullptr;
* Main worker method that will go over all the recurring paymets and process any pending ones
*/
void Recurring::processPending(MainWindow* main) {
qDebug() << "Processing payments";
// Refuse to run on mainnet
if (!Settings::getInstance()->isTestnet())
return;
if (!main->isPaymentsReady())
return;

Loading…
Cancel
Save