fixed variable name mismatch
This commit is contained in:
parent
32e7967094
commit
bf6f976ab0
@ -19,7 +19,7 @@ var index = module.exports = function index(options){
|
||||
|
||||
|
||||
function SetupBlockListener(){
|
||||
console.log("Block listener is enabled, starting server on port " + config.blockNotifyListener.port);
|
||||
console.log("Block listener is enabled, starting server on port " + options.blockNotifyListener.port);
|
||||
var blockNotifyServer = net.createServer(function(c) {
|
||||
emitLog('Block listener has incoming connection');
|
||||
var data = '';
|
||||
@ -35,7 +35,7 @@ var index = module.exports = function index(options){
|
||||
emitLog('Block listener connection ended');
|
||||
|
||||
var message = JSON.parse(data);
|
||||
if (message.password === config.blockNotifyListener.password){
|
||||
if (message.password === options.blockNotifyListener.password){
|
||||
|
||||
for (var i = 0; i < this.pools.length; i++){
|
||||
if (this.pools[i].options.symbol === message.coin){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user