-
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
Option to disable incoming push amounts on channel opening #2027
Option to disable incoming push amounts on channel opening #2027
Conversation
5f8e807
to
975e9a3
Compare
975e9a3
to
b124190
Compare
I'm not quite sure about adding another error type ( |
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 ⚡️
b124190
to
3a8e738
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 👍
This is useful for merchant-side prevention of accidental pushes during channel opening.
3a8e738
to
6f3adcd
Compare
cfg.RejectPush = true | ||
defer func() { | ||
tearDownFundingManagers(t, alice, bob) | ||
cfg.RejectPush = rejectPush |
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.
just leaving a note that this could be lead to a race condition in the unit tests if other tests are reading from cfg
in parallel. we can revisit if it surfaces
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.
Hm yeah, value should probably be copied to the fundingMgr
config.
Implements proposal in #1884.
Progress:
Fixes #1884.