From 3b0b4824618c1b442327a45eab1d221dadd41e77 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 18 Feb 2024 05:34:00 +0200 Subject: [PATCH] throw new Exception on pool error --- src/Controller/CrontabController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/CrontabController.php b/src/Controller/CrontabController.php index 3dd0904..4e09eb7 100644 --- a/src/Controller/CrontabController.php +++ b/src/Controller/CrontabController.php @@ -61,10 +61,10 @@ class CrontabController extends AbstractController // Payment received, send to blockchain if ($client->getReceivedByAddress($pool->getAddress(), $this->getParameter('app.pool.confirmations')) >= $pool->getCost()) { - // Check physical account balance + // Check physical pool balance if ($client->getBalance($this->getParameter('app.kevacoin.pool.account'), $this->getParameter('app.pool.confirmations')) < $pool->getCost()) { - continue; // wait for income full confirmed amount + throw new Exception(); } // Is room request