Better errors on init

This commit is contained in:
Matthew Little 2014-01-17 12:48:23 -07:00
parent beff912825
commit d38b332f81

View File

@ -199,8 +199,10 @@ var pool = module.exports = function pool(options, authorizeFn){
}
GetBlockTemplate(function(error, result){
if (error)
emitErrorLog('system', 'Error with initial getblocktemplate ' + error);
if (error){
console.error(error);
emitErrorLog('system', 'Error with initial getblocktemplate');
}
else{
SetupBlockPolling();
StartStratumServer();