mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-14 02:15:29 +02:00
htlcswitch: add quiescence timeout that is aborted by Resume
This commit is contained in:
@@ -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{}
|
||||
|
Reference in New Issue
Block a user