mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
plugin: Add plugins to lightningd and register arguments
This commit is contained in:
@@ -211,6 +211,14 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
|
||||
ld->tor_service_password = NULL;
|
||||
ld->max_funding_unconfirmed = 2016;
|
||||
|
||||
/*~ We run a number of plugins (subprocesses that we talk JSON-RPC with)
|
||||
*alongside this process. This allows us to have an easy way for users
|
||||
*to add their own tools without having to modify the c-lightning source
|
||||
*code. Here we initialize the context that will keep track and control
|
||||
*the plugins.
|
||||
*/
|
||||
ld->plugins = plugins_new(ld);
|
||||
|
||||
return ld;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user