-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
funding: remove dead code and sanity check pending chan ID #7887
funding: remove dead code and sanity check pending chan ID #7887
Conversation
17ebee1
to
dedbb04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
9aca401
to
bdc2306
Compare
This commit removes the occurance of `newChanBarriers` as it's not used anywhere.
95c8583
to
79d11cb
Compare
Slightly refactored the names so it's easier to see which side is processing what messages.
This commit adds a sanity check to make sure an empty pending channel ID will not be accepted.
79d11cb
to
23c75ae
Compare
@Crypt-iQ: review reminder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! LGTM 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
func (f *Manager) handleFundingOpen(peer lnpeer.Peer, | ||
// | ||
//nolint:funlen | ||
func (f *Manager) fundeeProcessOpenChannel(peer lnpeer.Peer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice renames 👍
A follow up PR from #7518, this PR removes the unused
newChanBarriers
, renames some of the methods for clarity, and adds a sanity check to make surependingChanID
is not set to zero.