mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
6b5db38774
After this code change people can use `plugin.rpc` from anywhere in their plugin code this is much nicer than going this way: ``` @plugin.method("init") def init(options, configuration, plugin): global rpc basedir = plugin.lightning_dir rpc_filename = plugin.rpc_filename path = os.path.join(basedir, rpc_filename) rpc = LightningRpc(path) ``` or similarly that way: ``` @plugin.method("init") def init(options, configuration, plugin): global rpc basedir = configuration['lightning-dir'] rpc_filename = configuration['rpc-file'] path = os.path.join(basedir, rpc_filename) rpc = LightningRpc(path) ``` Also the imports have been sorted alphabetically Co-authored-by: Rene Pickhardt <rene@rene-pickhardt.de> Co-authored-by: Christian Decker <decker.christian@gmail.com> |
||
---|---|---|
.. | ||
init | ||
plugins | ||
pylightning | ||
Dockerfile.builder | ||
Dockerfile.builder.fedora | ||
Dockerfile.builder.i386 | ||
lightning-cli.bash-completion | ||
linuxarm32v7.Dockerfile | ||
short_channel_id-to-txid.sh |