pool: lint. minor.
This commit is contained in:
parent
d0628e990d
commit
bfca120f4f
@ -729,7 +729,14 @@ Pool.prototype.stopSync = function stopSync() {
|
|||||||
if (!peer.outbound)
|
if (!peer.outbound)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!peer.syncing)
|
||||||
|
continue;
|
||||||
|
|
||||||
peer.syncing = false;
|
peer.syncing = false;
|
||||||
|
peer.merkleBlock = null;
|
||||||
|
peer.merkleTime = -1;
|
||||||
|
peer.merkleMatches = 0;
|
||||||
|
peer.blockTime = -1;
|
||||||
peer.blockMap.reset();
|
peer.blockMap.reset();
|
||||||
peer.compactBlocks.reset();
|
peer.compactBlocks.reset();
|
||||||
}
|
}
|
||||||
@ -839,8 +846,6 @@ Pool.prototype.sendSync = co(function* sendSync(peer) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Pool.prototype.sendLocator = function sendLocator(locator, peer) {
|
Pool.prototype.sendLocator = function sendLocator(locator, peer) {
|
||||||
var locator;
|
|
||||||
|
|
||||||
if (!this.isSyncable(peer))
|
if (!this.isSyncable(peer))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user