diff --git a/lib/worker.js b/lib/worker.js index 8589dcb..fd4324a 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -432,6 +432,9 @@ function updatePoolInformation() { function updateBlockHeader() { global.support.rpcDaemon('getlastblockheader', [], function (body) { + if (typeof body.error !== 'undefined'){ + return console.error(`Issue getting last block header: ${JSON.stringify(body)}`); + } if (body.result && body.result.block_header.hash !== lastBlockHash) { lastBlockHash = body.result.block_header.hash; global.database.setCache('networkBlockInfo', {