removed registrar since now it's built-in
This commit is contained in:
parent
2f7150a789
commit
6df36c6ce4
20
lib/node.js
20
lib/node.js
@ -736,31 +736,11 @@ Node.prototype.setWatches = function()
|
|||||||
}, PING_INTERVAL);
|
}, PING_INTERVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Node.prototype.installContract = function()
|
|
||||||
{
|
|
||||||
var start = _.now();
|
|
||||||
|
|
||||||
try {
|
|
||||||
Contract = web3.eth.contract( registrar.desc );
|
|
||||||
this._Registrar = new Contract( registrar.address );
|
|
||||||
|
|
||||||
console.success('Installed Registrar contract in', chalk.reset.cyan(_.now() - start, 'ms'));
|
|
||||||
}
|
|
||||||
catch (err)
|
|
||||||
{
|
|
||||||
console.error("!!!", "eth", "Couldn't set up registrar contract");
|
|
||||||
console.error(err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Node.prototype.init = function()
|
Node.prototype.init = function()
|
||||||
{
|
{
|
||||||
// Fetch node info
|
// Fetch node info
|
||||||
this.getInfo();
|
this.getInfo();
|
||||||
|
|
||||||
// Install Registrar contract
|
|
||||||
this.installContract();
|
|
||||||
|
|
||||||
// Start socket connection
|
// Start socket connection
|
||||||
this.startSocketConnection();
|
this.startSocketConnection();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user