From 5e98496cecc0550d1a1a1cb16f426a9ae81e1b24 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 8 Jul 2013 07:22:05 +0200 Subject: [PATCH] Update proportional_payout.php Abort if no shares could be found for a block to allow user intervention to fix it. --- cronjobs/proportional_payout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronjobs/proportional_payout.php b/cronjobs/proportional_payout.php index c9c61539..d7ab7e95 100755 --- a/cronjobs/proportional_payout.php +++ b/cronjobs/proportional_payout.php @@ -54,7 +54,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) { if (empty($aAccountShares)) { $log->logFatal('No shares found for this block, aborted: ' . $aBlock['height']); sleep(2); - continue; + exit(1); } // Loop through all accounts that have found shares for this round