Updated findblock cron to use block->getLastValid

This commit is contained in:
Barry Deeney 2014-03-02 11:03:32 +08:00
parent 7dce981901
commit 338154b1ee

View File

@ -26,7 +26,7 @@ chdir(dirname(__FILE__));
require_once('shared.inc.php');
// Fetch our last block found from the DB as a starting point
$aLastBlock = @$block->getLast();
$aLastBlock = @$block->getLastValid();
$strLastBlockHash = $aLastBlock['blockhash'];
if (!$strLastBlockHash) $strLastBlockHash = '';