core-lightning/contrib
Rene Pickhardt 6b5db38774 pylightning: Made rpc a public member of Plugin and sorted imports
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>
2019-01-12 22:12:01 +01:00
..
init contrib: add init file for systemd 2018-08-13 23:55:12 +00:00
plugins [plugin] Improved the example code to encourage usage of optional arguments (#2212) 2019-01-02 23:16:56 +01:00
pylightning pylightning: Made rpc a public member of Plugin and sorted imports 2019-01-12 22:12:01 +01:00
Dockerfile.builder docker: Update pytest dependencies in the builder image 2018-11-26 22:53:37 +00:00
Dockerfile.builder.fedora docker: Update docker images and docs to non-CVE-2018-17144 bitcoind 2018-10-15 23:05:25 +00:00
Dockerfile.builder.i386 docker: Update pytest dependencies in the builder image 2018-11-26 22:53:37 +00:00
lightning-cli.bash-completion contrib/lightning-cli.bash-completion: fix for new simpler help format. 2018-02-02 00:05:00 +01:00
linuxarm32v7.Dockerfile Add dockerfile for cross compiling arm32v7 image 2019-01-04 22:48:20 +01:00
short_channel_id-to-txid.sh contrib/short_channel_id-to-txid.sh: simple mapping util. 2018-08-21 22:53:45 +02:00