mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
funding: remove incorrect and repetitive comments
We don't actually do the logging described in the first comment, and the second comment block repeats much of the first comment block.
This commit is contained in:
parent
e59cd7f91d
commit
34186dee19
1 changed files with 3 additions and 6 deletions
|
@ -1881,8 +1881,9 @@ func (f *Manager) handleFundingAccept(peer lnpeer.Peer,
|
|||
} else if msg.ChannelType != nil {
|
||||
// The spec isn't too clear about whether it's okay to set the
|
||||
// channel type in the accept_channel response if we didn't
|
||||
// explicitly set it in the open_channel message. For now, let's
|
||||
// just log the problem instead of failing the funding flow.
|
||||
// explicitly set it in the open_channel message. For now, we
|
||||
// check that it's the same type we'd have arrived through
|
||||
// implicit negotiation. If it's another type, we fail the flow.
|
||||
_, implicitCommitType := implicitNegotiateCommitmentType(
|
||||
peer.LocalFeatures(), peer.RemoteFeatures(),
|
||||
)
|
||||
|
@ -1900,10 +1901,6 @@ func (f *Manager) handleFundingAccept(peer lnpeer.Peer,
|
|||
return
|
||||
}
|
||||
|
||||
// Even though we don't expect a channel type to be set when we
|
||||
// didn't send one in the first place, we check that it's the
|
||||
// same type we'd have arrived through implicit negotiation. If
|
||||
// it's another type, we fail the flow.
|
||||
if implicitCommitType != negotiatedCommitType {
|
||||
err := errors.New("negotiated unexpected channel type")
|
||||
f.failFundingFlow(peer, msg.PendingChannelID, err)
|
||||
|
|
Loading…
Add table
Reference in a new issue