mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
lightningd: refactor to extract getmanifest paths.
This will allow the dynamic starting code to use them too. Also lets us move dev_debug_subprocess under #if DEVELOPER. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -123,8 +123,8 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
|
||||
* is a nod to keeping it minimal and explicit: we need this code for
|
||||
* testing, but its existence means we're not actually testing the
|
||||
* same exact code users will be running. */
|
||||
ld->dev_debug_subprocess = NULL;
|
||||
#if DEVELOPER
|
||||
ld->dev_debug_subprocess = NULL;
|
||||
ld->dev_disconnect_fd = -1;
|
||||
ld->dev_subdaemon_fail = false;
|
||||
ld->dev_allow_localhost = false;
|
||||
@@ -808,7 +808,7 @@ int main(int argc, char *argv[])
|
||||
/*~ Initialize all the plugins we just registered, so they can
|
||||
* do their thing and tell us about themselves (including
|
||||
* options registration). */
|
||||
plugins_init(ld->plugins, ld->dev_debug_subprocess);
|
||||
plugins_init(ld->plugins);
|
||||
|
||||
/*~ Handle options and config. */
|
||||
handle_opts(ld, argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user