Merge pull request #8663 from Filiprogrammer/funding-manager-log-errors

funding: add absent error logs for failed inbound funding requests
This commit is contained in:
Oliver Gugger 2024-05-20 15:23:32 +02:00 committed by GitHub
commit 2a8ca878fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1556,6 +1556,8 @@ func (f *Manager) fundeeProcessOpenChannel(peer lnpeer.Peer,
// Fail the funding flow.
flowErr := fmt.Errorf("channel acceptor blocked " +
"zero-conf channel negotiation")
log.Errorf("Cancelling funding flow for %v based on "+
"channel acceptor response: %v", cid, flowErr)
f.failFundingFlow(peer, cid, flowErr)
return
}
@ -1570,6 +1572,9 @@ func (f *Manager) fundeeProcessOpenChannel(peer lnpeer.Peer,
// Fail the funding flow.
flowErr := fmt.Errorf("scid-alias feature " +
"must be negotiated for zero-conf")
log.Errorf("Cancelling funding flow for "+
"zero-conf channel %v: %v", cid,
flowErr)
f.failFundingFlow(peer, cid, flowErr)
return
}
@ -1586,7 +1591,8 @@ func (f *Manager) fundeeProcessOpenChannel(peer lnpeer.Peer,
case public && scid:
err = fmt.Errorf("option-scid-alias chantype for public " +
"channel")
log.Error(err)
log.Errorf("Cancelling funding flow for public channel %v "+
"with scid-alias: %v", cid, err)
f.failFundingFlow(peer, cid, err)
return
@ -1595,7 +1601,8 @@ func (f *Manager) fundeeProcessOpenChannel(peer lnpeer.Peer,
// unadvertised channels for now.
case commitType.IsTaproot() && public:
err = fmt.Errorf("taproot channel type for public channel")
log.Error(err)
log.Errorf("Cancelling funding flow for public taproot "+
"channel %v: %v", cid, err)
f.failFundingFlow(peer, cid, err)
return