Add mainnet protection

This commit is contained in:
Aditya Kulkarni
2019-05-14 14:15:58 -07:00
parent 5f7d6ca480
commit c4e9899adc

View File

@@ -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;