-
Notifications
You must be signed in to change notification settings - Fork 901
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
Important plugin #3890
Important plugin #3890
Conversation
58c0493
to
7ea27bd
Compare
Fix documentation (we need to say |
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.
Mostly copy suggestions et al.
The API for this seems a bit clunky, especially the requirement to list both unimportant
and disable
(and ordered, yikes) as well as the important-plugin
+ plugin
.
Minimal IF* states that we should do the minimal amount possible to achieve the goal, which I think would be just the addition of important-plugin
. If the need for an unimportant-plugin
disparate from disable
arises later, it can be added.
* This is a fanciful interpretation of MINIMAL_IF
…built-in plugins.
7ea27bd
to
cd4c510
Compare
Updated as per @niftynei feedback. |
ba37732
to
d93db11
Compare
Looks good, but Travis is deeply unhappy... |
…lightningd also terminates. Changelog-Added: New option `--important-plugin` loads a plugin is so important that if it dies, `lightningd` will exit rather than continue. You can still `--disable-plugin` it, however, which trumps `--important-plugin` and it will not be started at all.
Changelog-Changed: plugin: Builtin plugins are now marked as important, and if they crash, will cause C-lightning to stop as well.
…velopers who want to mess around with the builtin plugins.
d93db11
to
f69c694
Compare
Fixed the valgrind bug that was making travis unhappy (why did travis keep rerunning the test tho???) and added |
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.
ACK f69c694
Closes #3213
Builtin plugins are automatically made important.