-
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: move Manager to own package #4757
Conversation
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
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 💯
q: would it be more idiomatic Go to have the package name as funding
and then rename FundingManager
as Manager
?
I think |
If the package is named |
The interface is named |
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, nice refactors! @Crypt-iQ
ae793c6
to
6b1a42d
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.
Nice, I like this latest iteration a lot! Easy to follow commits, 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 💯
This commit duplicates the utxonursery's writeOutpoint function in the funding package so that when the rest of the fundingmanager code is moved, it can use the WriteOutpoint function for its channel opening state data.
Also moves the lnd global MaxFundingAmount to server.go
Renames
fundingManager
toManager
. Moves theManager
to thefunding
package. Will help a lot with unit testing. The last commit should be viewed with a git client with--color-moved
as GitHub is too picky to see thefundingmanager.go -> funding/manager.go
as a code-move.