diff --git a/lib/net/pool.js b/lib/net/pool.js index 5c75a0966..869746e2f 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -744,7 +744,7 @@ class Pool extends EventEmitter { this.filterSyncing = true; const cFHeaderHeight = await this.chain.getCFHeaderHeight(); const startHeight = cFHeaderHeight - ? cFHeaderHeight : 1; + ? cFHeaderHeight + 1 : 1; const chainHeight = await this.chain.height; const stopHeight = chainHeight > 2000 ? 2000 : chainHeight; const stopHash = await this.chain.getHash(stopHeight); @@ -769,7 +769,7 @@ class Pool extends EventEmitter { this.filterSyncing = true; const cFilterHeight = await this.chain.getCFilterHeight(); const startHeight = cFilterHeight - ? cFilterHeight : 1; + ? cFilterHeight + 1 : 1; const chainHeight = await this.chain.height; const stopHeight = chainHeight > 1000 ? 1000 : chainHeight; const stopHash = await this.chain.getHash(stopHeight); @@ -1761,10 +1761,7 @@ class Pool extends EventEmitter { return; if (this.neutrino) { - const locator = await this.chain.getLocator(); - this.sendLocator(locator, peer); - if (!this.syncing) - this.startFilterHeadersSync(); + this.startSync(); return; } @@ -3668,9 +3665,6 @@ class Pool extends EventEmitter { */ getBlock(peer, hashes) { - if (this.options.neutrino) - return; - if (!this.opened) return;