Better errors on init

This commit is contained in:
Matthew Little 2014-01-17 12:41:35 -07:00
parent 6cdc9214ac
commit beff912825
3 changed files with 11 additions and 3 deletions

8
.travis.yml Normal file
View File

@ -0,0 +1,8 @@
language: node_js
node_js:
- "0.10"
deploy:
provider: npm
email: "zone117x@gmail.com"
api_key: "YOUR-API-KEY"

View File

@ -189,7 +189,7 @@ var pool = module.exports = function pool(options, authorizeFn){
if (options.difficulty > results.networkDifficulty && options.difficulty > 16){
var newDiff = results.networkDifficulty > 16 ? results.networkDifficulty : 16;
emitWarningLog('system', 'pool difficulty was set higher than network difficulty');
emitWarningLog('system', 'pool difficulty was set higher than network difficulty of ' + results.networkDifficulty);
emitWarningLog('system', 'lowering pool diff from ' + options.difficulty + ' to ' + newDiff);
options.difficulty = newDiff
@ -200,7 +200,7 @@ var pool = module.exports = function pool(options, authorizeFn){
GetBlockTemplate(function(error, result){
if (error)
emitErrorLog('system', 'Error with initial getblocktemplate');
emitErrorLog('system', 'Error with initial getblocktemplate ' + error);
else{
SetupBlockPolling();
StartStratumServer();

View File

@ -1,6 +1,6 @@
{
"name": "stratum-pool",
"version": "0.0.3",
"version": "0.0.4",
"author": "Matthew Little",
"description": "High performance Stratum poolserver in Node.js",
"contributors": [