From 42dc4594b5413fa7eea8120ea462a7cf90055a38 Mon Sep 17 00:00:00 2001 From: nicoschtein Date: Mon, 4 Nov 2013 16:20:27 -0200 Subject: [PATCH] [FIX] Double Payout Detection Fixes Orphan Block Issues Fixes #715 when merged, for the third time.. --- cronjobs/pplns_payout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronjobs/pplns_payout.php b/cronjobs/pplns_payout.php index 09d7d3c8..18b2d89a 100755 --- a/cronjobs/pplns_payout.php +++ b/cronjobs/pplns_payout.php @@ -59,7 +59,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) { $iLastBlockHeight = 0; } // Double payout detection - if ( ( !$aBlock['accounted'] && $aBlock['height'] > $iLastBlockHeight ) || @$aLastAccountedBlock['confirmations'] == -1) { + if ( @$aLastAccountedBlock['confirmations'] != -1 || ( !$aBlock['accounted'] && $aBlock['height'] > $iLastBlockHeight )) { $iPreviousShareId = @$aAllBlocks[$iIndex - 1]['share_id'] ? $aAllBlocks[$iIndex - 1]['share_id'] : 0; $iCurrentUpstreamId = $aBlock['share_id']; if (!is_numeric($iCurrentUpstreamId)) {