Skip to content

Commit

Permalink
Added block notify support
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Mar 12, 2020
1 parent 9362ad8 commit 936d69f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const hexMatch = new RegExp("^[0-9a-f]+$");
const baseDiff = global.coinFuncs.baseDiff();

const BLOCK_NOTIFY_PORT = 2223;
const DAEMON_POLL_MS = 100;
const DAEMON_POLL_MS = 500;

function get_new_id() {
const min = 100000000000000;
Expand Down Expand Up @@ -2101,7 +2101,7 @@ if (cluster.isMaster) {
timer = null;
const port = parseInt(buff.toString());
const coin = global.coinFuncs.PORT2COIN(port);
if (typeof(coin) == undefined) {
if (typeof(coin) === 'undefined') {
console.error(threadName + "Block notify for unknown coin with " + port + " port");
} else {
console.error(threadName + "Block notify for coin " + coin + " with " + port + " port");
Expand Down

0 comments on commit 936d69f

Please sign in to comment.