mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-21 14:22:46 +02:00
multi: clarify co-op closure failures.
This commit is contained in:
parent
58193ef18c
commit
42dd0fa912
@ -1267,6 +1267,10 @@ func (l *channelLink) htlcManager() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
l.log.Infof("Channel is in an unclean state " +
|
||||||
|
"(lingering updates), graceful shutdown of " +
|
||||||
|
"channel link not possible")
|
||||||
|
|
||||||
// Otherwise, the channel has lingering updates, send
|
// Otherwise, the channel has lingering updates, send
|
||||||
// an error and continue.
|
// an error and continue.
|
||||||
req.err <- ErrLinkFailedShutdown
|
req.err <- ErrLinkFailedShutdown
|
||||||
|
@ -2982,7 +2982,10 @@ func (p *Brontide) handleLocalCloseReq(req *htlcswitch.ChanClose) {
|
|||||||
// failed.
|
// failed.
|
||||||
if err := p.tryLinkShutdown(chanID); err != nil {
|
if err := p.tryLinkShutdown(chanID); err != nil {
|
||||||
p.log.Errorf("failed link shutdown: %v", err)
|
p.log.Errorf("failed link shutdown: %v", err)
|
||||||
req.Err <- err
|
|
||||||
|
req.Err <- fmt.Errorf("failed handling co-op closing "+
|
||||||
|
"request with (try force closing "+
|
||||||
|
"it instead): %w", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3683,8 +3686,8 @@ func (p *Brontide) handleCloseMsg(msg *closeMsg) {
|
|||||||
func (p *Brontide) HandleLocalCloseChanReqs(req *htlcswitch.ChanClose) {
|
func (p *Brontide) HandleLocalCloseChanReqs(req *htlcswitch.ChanClose) {
|
||||||
select {
|
select {
|
||||||
case p.localCloseChanReqs <- req:
|
case p.localCloseChanReqs <- req:
|
||||||
p.log.Info("Local close channel request delivered to " +
|
p.log.Info("Local close channel request is going to be " +
|
||||||
"peer")
|
"delivered to the peer")
|
||||||
case <-p.quit:
|
case <-p.quit:
|
||||||
p.log.Info("Unable to deliver local close channel request " +
|
p.log.Info("Unable to deliver local close channel request " +
|
||||||
"to peer")
|
"to peer")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user