core-lightning/contrib
Christian Decker b1aed933e6 pyln: Plugin methods and hooks refuse to set results twice
We had a couple of instances where a plugin would be killed by `lightningd`
because we were returning a result of an exception twice, and it was hard to
trace down the logic error in the user plugin that caused that. This patch
adds a traceback the first time we return a result/exception, and raise an
exception with a stacktrace of the first termination when a second one comes
in.

This can still terminate the plugin, but the programmer gets a clear
indication where the result was set, and can potentially even recover from it.

Changelog-Added: pyln: Plugin method and hook requests prevent the plugin developer from accidentally setting the result multiple times, and will raise an exception detailing where the result was first set.
2020-10-13 20:52:48 +02:00
..
init systemd: After=network-online.target 2019-08-20 20:14:36 +02:00
plugins JSON-RPC: getmanifest passes allow-deprecated-apis flag. 2020-08-11 08:43:18 +09:30
pylightning pyln: Add unit tests from pyln-* to make check-python 2020-02-01 16:50:58 +01:00
pyln-client pyln: Plugin methods and hooks refuse to set results twice 2020-10-13 20:52:48 +02:00
pyln-proto pyln: Add type-annotations to pyln-proto 2020-09-28 09:19:46 +09:30
pyln-spec pyln-proto, pyln-spec: fix 'make prod-release' target. 2020-06-29 18:01:12 +02:00
pyln-testing pytest: fix overzealous removal of directories on failure. 2020-10-13 17:33:49 +02:00
reprobuild repro: Add missing Dockerfiles 2020-09-16 06:27:12 +09:30
sanitizer_suppressions configure: allow to run clang with ASAN 2020-09-24 13:57:43 +09:30
bootstrap-node.sh contrib: add executable flag for bootstrap-node.sh 2020-05-05 13:27:55 +09:30
Dockerfile.builder build: add mkrd to docker install? 2020-04-19 08:07:47 +09:30
Dockerfile.builder.fedora build: add mkrd to docker install? 2020-04-19 08:07:47 +09:30
lightning-cli.bash-completion Fix bash completion. 2020-05-15 15:25:33 +02:00
linuxarm32v7.Dockerfile Add python to runtime docker image (arm32/64) 2020-08-24 20:23:25 +02:00
linuxarm64v8.Dockerfile Add python to runtime docker image (arm32/64) 2020-08-24 20:23:25 +02:00
short_channel_id-to-txid.sh Add compability to current formalism to short_channel_id-to-txid.sh 2019-10-04 00:38:52 +00:00
startup_regtest.sh contrib: make bitcoin polling and gossip propagation snappier 2020-09-17 10:14:22 +09:30