mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-04 09:58:39 +02:00
Merge pull request #8090 from ziggie1984/add-additional-log-chan-closure
Add more information when a co-op close is failing.
This commit is contained in:
commit
82838e4a62
@ -1267,6 +1267,10 @@ func (l *channelLink) htlcManager() {
|
||||
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
|
||||
// an error and continue.
|
||||
req.err <- ErrLinkFailedShutdown
|
||||
|
@ -2982,7 +2982,10 @@ func (p *Brontide) handleLocalCloseReq(req *htlcswitch.ChanClose) {
|
||||
// failed.
|
||||
if err := p.tryLinkShutdown(chanID); err != nil {
|
||||
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
|
||||
}
|
||||
|
||||
@ -3683,8 +3686,8 @@ func (p *Brontide) handleCloseMsg(msg *closeMsg) {
|
||||
func (p *Brontide) HandleLocalCloseChanReqs(req *htlcswitch.ChanClose) {
|
||||
select {
|
||||
case p.localCloseChanReqs <- req:
|
||||
p.log.Info("Local close channel request delivered to " +
|
||||
"peer")
|
||||
p.log.Info("Local close channel request is going to be " +
|
||||
"delivered to the peer")
|
||||
case <-p.quit:
|
||||
p.log.Info("Unable to deliver local close channel request " +
|
||||
"to peer")
|
||||
|
Loading…
x
Reference in New Issue
Block a user