added update functionality (fixes #7)

This commit is contained in:
Marian Oancea
2015-02-05 01:30:16 +02:00
parent a3968373c0
commit 4cfe4948af
5 changed files with 36 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ var Node = function Node(options, id)
{
this.info = options;
this.info.geo = geoip.lookup(this.info.rpcHost);
this.info.id = id;
this.info.id = parseInt(id);
this.info.stats = {
active: false,
peers: 0,