|
|
|
@ -177,7 +177,7 @@ function updateShareStats() {
|
|
|
|
|
if (globalMinerList.indexOf(miner) === -1) {
|
|
|
|
|
globalMinerList.push(miner);
|
|
|
|
|
}
|
|
|
|
|
if (miner.indexOf('-') === -1){
|
|
|
|
|
if (miner.indexOf('_') === -1){
|
|
|
|
|
activeAddresses.push(miner);
|
|
|
|
|
}
|
|
|
|
|
let cachedData = global.database.getCache(miner);
|
|
|
|
@ -440,7 +440,13 @@ function updateBlockHeader() {
|
|
|
|
|
value: body.result.block_header.reward,
|
|
|
|
|
ts: body.result.block_header.timestamp
|
|
|
|
|
});
|
|
|
|
|
sock.send(['network_block_info', 'complete']);
|
|
|
|
|
sock.send(['network_block_info', JSON.stringify({
|
|
|
|
|
difficulty: body.result.block_header.difficulty,
|
|
|
|
|
hash: body.result.block_header.hash,
|
|
|
|
|
height: body.result.block_header.height,
|
|
|
|
|
value: body.result.block_header.reward,
|
|
|
|
|
ts: body.result.block_header.timestamp
|
|
|
|
|
})]);
|
|
|
|
|
} else {
|
|
|
|
|
console.error("GetLastBlockHeader Error during block header update");
|
|
|
|
|
}
|
|
|
|
|