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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
6 deletions
-
app/lib/lnd/neutrino.js
|
|
@ -184,16 +184,12 @@ 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(/Writing filter headers up to height=(\d*)/))) { |
|
|
|
cfilter = match[1] |
|
|
|
} else if ((match = line.match(/Verified \d* filter headers? in the.+\(height (\d+)/))) { |
|
|
|
cfilter = match[1] |
|
|
|
} |
|
|
|
|
|
|
|
if (!this.lndCfilterHeight || this.lndCfilterHeight > this.currentBlockHeight - 10000) { |
|
|
|
if ((match = line.match(/Fetching filter for height=(\d+)/))) { |
|
|
|
cfilter = match[1] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (height) { |
|
|
|
this.setState(CHAIN_SYNC_IN_PROGRESS) |
|
|
|
this.setLndBlockHeight(height) |
|
|
|