We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf6ad4e commit 460eb5cCopy full SHA for 460eb5c
lib/blockchain.js
@@ -343,6 +343,7 @@ Blockchain.prototype._getHeaders = function (opts) {
343
opts = opts || {}
344
this.getLocator(opts.from || this.tip.hash, function (err, locator) {
345
if (err) throw err
346
+ if (!self.downloadPeer) return
347
var message = self.downloadPeer.messages.GetHeaders({
348
starts: locator
349
})
0 commit comments