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 2018-09-10 12:45:12 +02:00
parent 7ad1f9f7d7
commit 146875ba65
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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
}