mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
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:
commit
2a8ca878fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user