Browse Source

Merge pull request #691 from mrfelton/fix/lnd-cfilterheader-message-parse

fix(lnd): don't treat filters as filter headers
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
74280f1619
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      app/lib/lnd/neutrino.js

8
app/lib/lnd/neutrino.js

@ -184,15 +184,11 @@ class Neutrino extends EventEmitter {
height = match[1]
} else if ((match = line.match(/Got cfheaders from height=(\d*) to height=(\d+)/))) {
cfilter = match[2]
} else if ((match = line.match(/Verified \d* filter headers? in the.+\(height (\d+)/))) {
} else if ((match = line.match(/Writing filter headers up to height=(\d*)/))) {
cfilter = match[1]
}
if (!this.lndCfilterHeight || this.lndCfilterHeight > this.currentBlockHeight - 10000) {
if ((match = line.match(/Fetching filter for height=(\d+)/))) {
} else if ((match = line.match(/Verified \d* filter headers? in the.+\(height (\d+)/))) {
cfilter = match[1]
}
}
if (height) {
this.setState(CHAIN_SYNC_IN_PROGRESS)

Loading…
Cancel
Save