Skip to content

Commit

Permalink
Merge pull request #1063 from Roasbeef/always-funding-unlock
Browse files Browse the repository at this point in the history
tapchannel: use new context for call to unlockLeases
  • Loading branch information
guggero authored Aug 6, 2024
2 parents ae0f1ce + e620288 commit 8597ee3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tapchannel/aux_funding_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1396,14 +1396,13 @@ func (f *FundingController) processFundingReq(fundingFlows fundingFlowIndex,
// We'll use this closure to ensure that we'll always unlock the inputs
// if we encounter an error below.
unlockLeases := func() {
err := fundingState.unlockInputs(fundReq.ctx, f.cfg.ChainWallet)
ctxb := context.Background()
err := fundingState.unlockInputs(ctxb, f.cfg.ChainWallet)
if err != nil {
log.Errorf("unable to unlock inputs: %v", err)
}

err = fundingState.unlockAssetInputs(
fundReq.ctx, f.cfg.CoinSelector,
)
err = fundingState.unlockAssetInputs(ctxb, f.cfg.CoinSelector)
if err != nil {
log.Errorf("Unable to unlock asset inputs: %v", err)
}
Expand Down

0 comments on commit 8597ee3

Please sign in to comment.