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.
This commit is contained in:
Johan T. Halseth 2018-08-24 15:35:34 +02:00
parent 10070ecab7
commit 6110182371
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

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