lnwallet/btcwallet: remove filter check

GetBestBlock will now return only blocks where the filter header is synced.
This commit is contained in:
Johan T. Halseth committed 2018-10-16 19:24:22 -07:00
1 parent 7ad1f9f7d7
commit 146875ba65
1 file changed
-12
-12
View File
@@ -750,17 +750,5 @@ func (b *BtcWallet) IsSynced() (bool, int64, error) {
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
}