pool: lint. minor.

This commit is contained in:
Christopher Jeffrey 2017-03-07 20:01:42 -08:00
parent d0628e990d
commit bfca120f4f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -729,7 +729,14 @@ Pool.prototype.stopSync = function stopSync() {
if (!peer.outbound)
continue;
if (!peer.syncing)
continue;
peer.syncing = false;
peer.merkleBlock = null;
peer.merkleTime = -1;
peer.merkleMatches = 0;
peer.blockTime = -1;
peer.blockMap.reset();
peer.compactBlocks.reset();
}
@ -839,8 +846,6 @@ Pool.prototype.sendSync = co(function* sendSync(peer) {
*/
Pool.prototype.sendLocator = function sendLocator(locator, peer) {
var locator;
if (!this.isSyncable(peer))
return false;