mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
plugin: Do not automatically initialize the RPC connection in bcli
Changelog-Fixed: plugin: `bcli` no longer logs a harmless warning about being unable to connect to the JSON-RPC interface. Changelog-Added: plugin: Plugins can opt out of having an RPC connection automatically initialized on startup.
This commit is contained in:
committed by
Rusty Russell
parent
54888d454b
commit
eb322b114b
@@ -961,7 +961,8 @@ int main(int argc, char *argv[])
|
||||
/* Initialize our global context object here to handle startup options. */
|
||||
bitcoind = new_bitcoind(NULL);
|
||||
|
||||
plugin_main(argv, init, PLUGIN_STATIC, NULL, commands, ARRAY_SIZE(commands),
|
||||
plugin_main(argv, init, PLUGIN_STATIC, false /* Do not init RPC on startup*/,
|
||||
NULL, commands, ARRAY_SIZE(commands),
|
||||
NULL, 0, NULL, 0,
|
||||
plugin_option("bitcoin-datadir",
|
||||
"string",
|
||||
|
||||
Reference in New Issue
Block a user