multi: thread thru RPC caller context from CloseChannel

This commit is contained in:
Olaoluwa Osuntokun
2025-02-10 18:34:34 -08:00
parent 127d3bed66
commit bf3007a2ce
5 changed files with 59 additions and 49 deletions

View File

@ -1292,7 +1292,9 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
// Instruct the switch to close the channel. Provide no close out
// delivery script or target fee per kw because user input is not
// available when the remote peer closes the channel.
s.htlcSwitch.CloseLink(chanPoint, closureType, 0, 0, nil)
s.htlcSwitch.CloseLink(
context.Background(), chanPoint, closureType, 0, 0, nil,
)
}
// We will use the following channel to reliably hand off contract