Merge pull request #57 from cubedro/develop

Added from argument to registrar call
This commit is contained in:
Marian OANCΞA 2015-04-06 21:31:45 +03:00
commit 478b8a97f0

View File

@ -85,6 +85,7 @@ function Node()
errors: [] errors: []
}; };
this._lastStats = JSON.stringify(this.stats); this._lastStats = JSON.stringify(this.stats);
this._coinbase = web3.eth.coinbase;
this._tries = 0; this._tries = 0;
this._down = 0; this._down = 0;
@ -316,7 +317,7 @@ Node.prototype.getMinerName = function(miner)
} }
else else
{ {
var name = this._Registrar.name(miner); var name = this._Registrar.call({from: this._coinbase}).name(miner);
if(name.length > 0) if(name.length > 0)
{ {