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
@ -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…
Reference in New Issue
Block a user