mirror of
https://github.com/kevachat/webapp.git
synced 2025-02-02 09:55:58 +00:00
throw new Exception on pool error
This commit is contained in:
parent
a45142f6d7
commit
3b0b482461
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user