diff --git a/cronjobs/findblock.php b/cronjobs/findblock.php index bf700511..43e8e48a 100755 --- a/cronjobs/findblock.php +++ b/cronjobs/findblock.php @@ -29,7 +29,11 @@ require_once('shared.inc.php'); $aLastBlock = @$block->getLastValid(); $strLastBlockHash = $aLastBlock['blockhash']; if (!$strLastBlockHash) { - $strLastBlockHash = $bitcoin->getblockhash(1); + try { + $strLastBlockHash = $bitcoin->getblockhash(1); + } catch (Exception $e) { + $strLastBlockHash = ""; + } } // Fetch all transactions since our last block