From 146875ba65649fe0b875402df22fc2167614a2fe Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 10 Sep 2018 12:45:12 +0200 Subject: [PATCH] lnwallet/btcwallet: remove filter check GetBestBlock will now return only blocks where the filter header is synced. --- lnwallet/btcwallet/btcwallet.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lnwallet/btcwallet/btcwallet.go b/lnwallet/btcwallet/btcwallet.go index 40d7f4e9..b52ba488 100644 --- a/lnwallet/btcwallet/btcwallet.go +++ b/lnwallet/btcwallet/btcwallet.go @@ -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 }