From 61101823710694362ed4beb58d103f9b20857206 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 24 Aug 2018 15:35:34 +0200 Subject: [PATCH] lnwallet/btcwallet: provide cancel chan as neutrino QuitChan option This will make sure a long-running rescan can be canceled in case Neutrino is the backend. --- lnwallet/btcwallet/blockchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lnwallet/btcwallet/blockchain.go b/lnwallet/btcwallet/blockchain.go index ecb5f1a24..8aeb3338b 100644 --- a/lnwallet/btcwallet/blockchain.go +++ b/lnwallet/btcwallet/blockchain.go @@ -51,6 +51,7 @@ func (b *BtcWallet) GetUtxo(op *wire.OutPoint, pkScript []byte, neutrino.StartBlock(&waddrmgr.BlockStamp{ Height: int32(heightHint), }), + neutrino.QuitChan(cancel), ) if err != nil { return nil, err