mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-19 05:38:35 +02:00
Update with more debug states
This commit is contained in:
+2
-1
@@ -117,7 +117,7 @@ sock.on('message', function(topic, message) {
|
||||
});
|
||||
break;
|
||||
case 'network_block_info':
|
||||
io.sockets.in('block_update').emit('message', JSON.stringify(global.database.getCache('networkBlockInfo')));
|
||||
io.sockets.in('block_update').emit('message', message);
|
||||
break;
|
||||
case 'pool_stats':
|
||||
if (message === 'global'){
|
||||
@@ -145,6 +145,7 @@ sock.on('message', function(topic, message) {
|
||||
case 'default':
|
||||
io.sockets.in('pool_stats_' + message).emit('message', JSON.stringify({'error': 'Invalid pool type'}));
|
||||
}
|
||||
localCache.poolType = pool_type;
|
||||
delete(localCache.minerHistory);
|
||||
delete(localCache.hashHistory);
|
||||
io.sockets.in('pool_stats_' + message).emit('message', JSON.stringify({pool_statistics: localCache}));
|
||||
|
||||
Reference in New Issue
Block a user