more debug information on non-existing block shares

This commit is contained in:
Sebastian Grewe 2013-07-09 22:41:07 +02:00
parent 8808913ca5
commit 85c1a8eaf5

View File

@ -61,7 +61,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
$log->logDebug("Matching or exceeding PPLNS target of $pplns_target with $iRoundShares");
$aAccountShares = $share->getSharesForAccounts($aBlock['share_id'] - $pplns_target + 1, $aBlock['share_id']);
if (empty($aAccountShares)) {
$log->logFatal("No shares found for this block, aborted!");
$log->logFatal("No shares found for this block, aborted! Block Height : " . $aBlock['height']);
exit(1);
}
} else {
@ -70,7 +70,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
// Grab the full current round shares since we didn't match target
$aAccountShares = $aRoundAccountShares;
if (empty($aAccountShares)) {
$log->logFatal("No shares found for this block, aborted!");
$log->logFatal("No shares found for this block, aborted! Block height: " . $aBlock['height']);
exit(1);
}