Better errors on init
This commit is contained in:
parent
6cdc9214ac
commit
beff912825
8
.travis.yml
Normal file
8
.travis.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- "0.10"
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
provider: npm
|
||||||
|
email: "zone117x@gmail.com"
|
||||||
|
api_key: "YOUR-API-KEY"
|
||||||
@ -189,7 +189,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
|
|
||||||
if (options.difficulty > results.networkDifficulty && options.difficulty > 16){
|
if (options.difficulty > results.networkDifficulty && options.difficulty > 16){
|
||||||
var newDiff = results.networkDifficulty > 16 ? results.networkDifficulty : 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);
|
emitWarningLog('system', 'lowering pool diff from ' + options.difficulty + ' to ' + newDiff);
|
||||||
|
|
||||||
options.difficulty = newDiff
|
options.difficulty = newDiff
|
||||||
@ -200,7 +200,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
|
|
||||||
GetBlockTemplate(function(error, result){
|
GetBlockTemplate(function(error, result){
|
||||||
if (error)
|
if (error)
|
||||||
emitErrorLog('system', 'Error with initial getblocktemplate');
|
emitErrorLog('system', 'Error with initial getblocktemplate ' + error);
|
||||||
else{
|
else{
|
||||||
SetupBlockPolling();
|
SetupBlockPolling();
|
||||||
StartStratumServer();
|
StartStratumServer();
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "stratum-pool",
|
"name": "stratum-pool",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"author": "Matthew Little",
|
"author": "Matthew Little",
|
||||||
"description": "High performance Stratum poolserver in Node.js",
|
"description": "High performance Stratum poolserver in Node.js",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user