htlcswitch: add quiescence timeout that is aborted by Resume

This commit is contained in:
Keagan McClelland committed 2024-11-26 14:13:43 -07:00
1 parent 111c9b05f3
commit a4c49a88f1
3 files changed
+124

No files matched your search

+4
View File
@@ -490,6 +490,10 @@ func NewChannelLink(cfg ChannelLinkConfig,
sendMsg: func(s lnwire.Stfu) error {
return cfg.Peer.SendMessage(false, &s)
},
timeoutDuration: defaultQuiescenceTimeout,
onTimeout: func() {
cfg.Peer.Disconnect(ErrQuiescenceTimeout)
},
})
} else {
qsm = &quiescerNoop{}