lnwallet: make BlockChainIO.GetUTXO take cancel chan

Use quit channels as cancel chan for call to GetUTXO.
This commit is contained in:
Johan T. Halseth
2018-08-24 15:31:57 +02:00
parent beb5d14ed9
commit 10070ecab7
8 changed files with 12 additions and 8 deletions

View File

@@ -1113,6 +1113,7 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error {
// been closed so we'll ignore it.
chanUtxo, err := r.cfg.Chain.GetUtxo(
fundingPoint, fundingPkScript, channelID.BlockHeight,
r.quit,
)
if err != nil {
r.rejectMtx.Lock()