Merge pull request #572 from TheSerapher/issue-569

Issue 569
This commit is contained in:
Sebastian Grewe 2013-08-07 21:43:05 -07:00
commit 66f04bd9ba

View File

@ -58,6 +58,10 @@ if (empty($aTransactions['transactions'])) {
$aData['confirmations'] . "\t\t" .
$aData['difficulty'] . "\t" .
strftime("%Y-%m-%d %H:%M:%S", $aData['time']));
if ( ! empty($aBlockInfo['flags']) && $aBlockInfo['flags'] == 'proof-of-stake' ) {
$log->logInfo("Block above with height " . $aData['height'] . " not added to database, proof-of-stake block!");
continue;
}
if (!$block->addBlock($aData) ) {
$log->logFatal('Unable to add this block to database: ' . $aData['height']);
}