Fixing proof-of-stake detection

Fixes #569
This commit is contained in:
Sebastian Grewe 2013-08-19 09:36:25 +02:00
parent 68f2d72cac
commit f0921264f8

View File

@ -59,7 +59,7 @@ if (empty($aTransactions['transactions'])) {
$aData['difficulty'] . "\t" .
strftime("%Y-%m-%d %H:%M:%S", $aData['time']));
if ( ! empty($aBlockInfo['flags']) && preg_match('/proof-of-stake/', $aBlockInfo['flags']) ) {
$logs->logInfo("Block above with height " . $aData['height'] . " not added to database, proof-of-stake block!");
$log->logInfo("Block above with height " . $aData['height'] . " not added to database, proof-of-stake block!");
continue;
}
if (!$block->addBlock($aData) ) {