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:
parent
10070ecab7
commit
6110182371
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user