check for syncPeer on blockchain fork.

This commit is contained in:
Christopher Jeffrey 2015-12-18 13:12:04 -08:00
parent 91618258e7
commit 7ffcc8e7f3

View File

@ -374,6 +374,8 @@ Pool.prototype._addPeer = function _addPeer(backoff) {
// Bad peer.
// this.chain.on('fork', function(height, hash, checkpoint) {
// // self.chain.resetLastCheckpoint(height);
// if (!self.syncPeer)
// return;
// self.peers.bad.push(self.syncPeer);
// self.startSync();
// });