Skip proof-of-stake blocks in findblock cron

* Do not add proof-of-stake blocks to database

Fixes #569
This commit is contained in:
Sebastian Grewe 2013-08-07 08:47:22 +02:00
parent 3bc1f780f2
commit 6dfce75df8

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' ) {
$logs->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']);
}