mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Fixing another undef error.
This commit is contained in:
committed by
Alexander Blair
parent
cd61a82240
commit
d99eee2571
@@ -432,6 +432,9 @@ function updatePoolInformation() {
|
|||||||
|
|
||||||
function updateBlockHeader() {
|
function updateBlockHeader() {
|
||||||
global.support.rpcDaemon('getlastblockheader', [], function (body) {
|
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) {
|
if (body.result && body.result.block_header.hash !== lastBlockHash) {
|
||||||
lastBlockHash = body.result.block_header.hash;
|
lastBlockHash = body.result.block_header.hash;
|
||||||
global.database.setCache('networkBlockInfo', {
|
global.database.setCache('networkBlockInfo', {
|
||||||
|
|||||||
Reference in New Issue
Block a user