From c4e9899adc23ed03dc9b36531e97a98a7bfd1016 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Tue, 14 May 2019 14:15:58 -0700 Subject: [PATCH] Add mainnet protection --- src/recurring.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/recurring.cpp b/src/recurring.cpp index 73027e8..7186c7f 100644 --- a/src/recurring.cpp +++ b/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;