From 6b14a1fcb6d518c743512c5c3249f933b9fed807 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 6 Apr 2015 21:31:28 +0300 Subject: [PATCH] added from argument to registrar call --- lib/node.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index 0f01ec0..00ae544 100644 --- a/lib/node.js +++ b/lib/node.js @@ -85,6 +85,7 @@ function Node() errors: [] }; this._lastStats = JSON.stringify(this.stats); + this._coinbase = web3.eth.coinbase; this._tries = 0; this._down = 0; @@ -316,7 +317,7 @@ Node.prototype.getMinerName = function(miner) } else { - var name = this._Registrar.name(miner); + var name = this._Registrar.call({from: this._coinbase}).name(miner); if(name.length > 0) {