Skip proof-of-stake blocks in findblock cron
* Do not add proof-of-stake blocks to database Fixes #569
This commit is contained in:
parent
3bc1f780f2
commit
6dfce75df8
@ -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']);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user