Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion staticaddr/loopin/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ func (f *FSM) cleanUpSessions(ctx context.Context,
sessions []*input.MuSig2SessionInfo) {

for _, s := range sessions {
err := f.cfg.Signer.MuSig2Cleanup(ctx, s.SessionID)
err := f.cfg.Signer.MuSig2Cleanup(
context.WithoutCancel(ctx), s.SessionID,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice subtle catch

)
if err != nil {
f.Warnf("unable to cleanup musig2 session: %v", err)
}
Expand Down
3 changes: 2 additions & 1 deletion staticaddr/loopin/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ func (m *Manager) handleLoopInSweepReq(ctx context.Context,
// We'll clean up the session if we don't get to signing.
defer func() {
err = m.cfg.Signer.MuSig2Cleanup(
ctx, musig2Session.SessionID,
context.WithoutCancel(ctx),
musig2Session.SessionID,
)
if err != nil {
log.Errorf("Error cleaning up musig2 session: "+
Expand Down