Skip to content

Commit

Permalink
fixed reporting for not mining nodes, reduced default verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Dec 19, 2019
1 parent 34a3bb2 commit 85478ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV LISTENING_PORT 30303
ENV INSTANCE_NAME $RPC_HOST
ENV WS_SERVER http://dashboard:3000
ENV WS_SECRET s3cr3t
ENV VERBOSITY 2
ENV VERBOSITY 1

COPY package*.json ./
RUN npm install
Expand Down
4 changes: 3 additions & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if(process.env.NODE_ENV === 'production' && INSTANCE_NAME === "")
}

console.info(' ');
console.info(' ', 'NET STATS CLIENT');
console.info(' ', 'ETH STATS CLIENT');
console.success(' ', 'v' + pjson.version);
console.info(' ');
console.info(' ');
Expand Down Expand Up @@ -493,6 +493,8 @@ Node.prototype.getStats = function(forced)
{
if (web3.eth.mining) {
web3.eth.getHashrate(callback);
} else {
callback(null);
}
},
gasPrice: function (callback)
Expand Down
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85478ce

Please sign in to comment.