add timestamp sync

This commit is contained in:
Manuel Araoz 2014-08-19 10:43:23 -04:00
commit 981c56f091
3 changed files with 12 additions and 2 deletions

View file

@ -326,7 +326,7 @@ Network.prototype.start = function(opts, openCallback) {
this._setupConnectionHandlers(openCallback);
var pubkey = this.getKey().public.toString('hex');
this.socket.emit('subscribe', pubkey);
//this.socket.emit('sync');
this.socket.emit('sync', opts.lastTimestamp);
this.started = true;
};