Skip to content
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

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

yyforyongyu
Copy link
Member

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 sure pendingChanID is not set to zero.

@yyforyongyu yyforyongyu added funding Related to the opening of new channels with funding transactions on the blockchain no-changelog labels Aug 11, 2023
Copy link
Collaborator

@morehouse morehouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yyforyongyu yyforyongyu force-pushed the fix-del-reservation branch 2 times, most recently from 9aca401 to bdc2306 Compare August 15, 2023 08:52
This commit removes the occurance of `newChanBarriers` as it's not used
anywhere.
@yyforyongyu yyforyongyu force-pushed the fix-del-reservation branch 2 times, most recently from 95c8583 to 79d11cb Compare August 23, 2023 06:13
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.
@lightninglabs-deploy
Copy link

@Crypt-iQ: review reminder

Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! LGTM 🎉

Copy link
Collaborator

@ellemouton ellemouton left a 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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice renames 👍

@guggero guggero merged commit ec2377d into lightningnetwork:master Oct 9, 2023
23 of 24 checks passed
@yyforyongyu yyforyongyu deleted the fix-del-reservation branch October 9, 2023 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
funding Related to the opening of new channels with funding transactions on the blockchain no-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants