mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
jsonrpc: populate ld->jsonrpc ourselves, so we can use it.
Next patch will call commands to get usage inside jsonrpc_new(): to do this it will need access to ld->jsonrpc, so we can't use the current pattern. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -207,7 +207,7 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
|
||||
* lightningd needs to have something to put those in. This
|
||||
* is that :-)
|
||||
*/
|
||||
ld->jsonrpc = jsonrpc_new(ld, ld);
|
||||
jsonrpc_setup(ld);
|
||||
|
||||
/*~ 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
|
||||
|
||||
Reference in New Issue
Block a user