mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
lnwallet/btcwallet: remove filter check
GetBestBlock will now return only blocks where the filter header is synced.
This commit is contained in:
parent
7ad1f9f7d7
commit
146875ba65
1 changed files with 0 additions and 12 deletions
|
@ -750,17 +750,5 @@ func (b *BtcWallet) IsSynced() (bool, int64, error) {
|
||||||
return false, bestTimestamp, nil
|
return false, bestTimestamp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// If this is neutrino, then we'll also want to wait until the set of
|
|
||||||
// filter headers also match
|
|
||||||
if neutrinoNode, ok := b.chain.(*chain.NeutrinoClient); ok {
|
|
||||||
filterDB := neutrinoNode.CS.RegFilterHeaders
|
|
||||||
_, filterHeaderTip, err := filterDB.ChainTip()
|
|
||||||
if err != nil {
|
|
||||||
return false, 0, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return filterHeaderTip == uint32(bestHeight), bestTimestamp, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return true, bestTimestamp, nil
|
return true, bestTimestamp, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue