-
Notifications
You must be signed in to change notification settings - Fork 404
Add ability to have user specify custom upfront shutdown script on channel open #2218
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 have user specify custom upfront shutdown script on channel open #2218
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 #2218 +/- ##
==========================================
- Coverage 91.57% 91.53% -0.05%
==========================================
Files 104 104
Lines 51553 51566 +13
Branches 51553 51566 +13
==========================================
- Hits 47212 47201 -11
- Misses 4341 4365 +24
... and 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
This is already done via |
Similar reasoning here: #2219 (comment) This PR is less useful I'll admit because we could just set the upfront shutdown option to false and decide the closing address at close time. |
I thought about putting it in the handshake config, however this is something you can set for the node globally I believe and that could result in a user reusing an address across multiple channels |
It's currently already reused across multiple channels (which should change with #2174), but you can override the config you use for outbound channels. |
Can you specify the intended use-case exactly here, at least as far as its different from #2219? I'm missing a bit of why you'd want to hard-code the shutdown script for a specific channel at open, in a way that isn't generic (ie "get an address of mine and use that") but is somehow specific to that channel. |
tbh #2219 is all we really need. With this PR was just trying to cover all the times you could override the shutdown script. If you want to punt on this that is fine, feel free to close |
Yea, absent a strong motivating use-case I'm inclined to punt on this, I'm not convinced its as useful as 2219 and is just one more place we can override the shutdown script I'd rather skip. |
This is a nice to have feature so you don't need to do something wacky with your channel manager if you want to open a channel with a specific shutdown script.