rgb-cln/contrib/pylightning/lightning
Christian Decker e0621fa8f7 pylightning: Better inject arguments in plugin method calls
If the `request` or `plugin` parameter that are injected by the
framework where before or inbetween positional arguments we'd be
injecting them incorrectly, i.e., we'd be providing them both as
`args` (and mismapping another argument) as well as `kwargs`.

This is a better way to map arguments, which takes advantage of the
fact that JSON-RPC calls are either all positional or named arguments.

I also included a test for various scenarios, that hopefull cover the
most common cases.

Reported-by: Rene Pickhardt <@renepickhardt>
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-01-08 17:37:00 +01:00
..
__init__.py pylightning: Added a tiny library for python plugins 2018-12-15 15:04:32 +01:00
lightning.py pylightning: Increase buffer size for big JSON-RPC responses 2018-12-29 12:19:56 +01:00
plugin.py pylightning: Better inject arguments in plugin method calls 2019-01-08 17:37:00 +01:00
test_plugin.py pylightning: Better inject arguments in plugin method calls 2019-01-08 17:37:00 +01:00