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:
Christian Decker
2020-07-20 14:39:32 +02:00
committed by Rusty Russell
parent 54888d454b
commit eb322b114b
8 changed files with 53 additions and 31 deletions

View File

@@ -358,7 +358,7 @@ int main(int argc, char *argv[])
features.bits[i] = tal_arr(NULL, u8, 0);
set_feature_bit(&features.bits[NODE_ANNOUNCE_FEATURE], KEYSEND_FEATUREBIT);
plugin_main(argv, init, PLUGIN_STATIC, &features, commands,
plugin_main(argv, init, PLUGIN_STATIC, true, &features, commands,
ARRAY_SIZE(commands), NULL, 0, hooks, ARRAY_SIZE(hooks),
NULL);
}