-
Notifications
You must be signed in to change notification settings - Fork 404
Add ability to set shutdown script when closing channel #2219
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
Add ability to set shutdown script when closing channel #2219
Conversation
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #2219 +/- ##
==========================================
+ Coverage 91.57% 91.60% +0.02%
==========================================
Files 104 104
Lines 51990 52010 +20
Branches 51990 52010 +20
==========================================
+ Hits 47610 47643 +33
+ Misses 4380 4367 -13
☔ View full report in Codecov by Sentry. |
Hmm, you can already do this via If we want to move it out of the |
For context the reason I'd like something like this is we want to keep our impl of get shutdown script that goes to our onchain wallet. But will have cases where we want to close a channel directly to another wallet. To do this by using the signing provider wouldn't really work (we don't know which channel is requesting an address) and it'd be much better to be able to pass it in on demand. |
Hmm, I'd really like to avoid having a way to set this in two places, especially given its already the case that we may or may not use it. Would it suffice for you if the |
With that we could hack it together (we'd probably just have a map in memory of channel ids and addresses) but i feel like this api would be cleaner on the user side. |
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.
I still hate this, but I think I hate it less than the crap our users would have to do to accomplish this if we don't do it, so I think I've come around.
51c3cd4
to
5f4efcc
Compare
Needs rebase after your err pr landed. |
5f4efcc
to
d8c3f49
Compare
rebased + responded to @tnull's nits |
d8c3f49
to
12b59b2
Compare
Closes #2216
This will require the user to have
commit_upfront_shutdown_pubkey = false
in their config when they open the channel. If this is being supported it may be a good idea to set this to default false instead. In the docs it explains that settingcommit_upfront_shutdown_pubkey = true
by default doesn't add any real security so maybe this is a good idea.