mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
bd811fbd1a
Hooks do not tolerate failures at all. If we return a JSON-RPC error to a hook call the only thing the main daemon can really do is to crash. This commit adds a mapping of error to a safe fallback result, including a warning to the node operator that this should be addressed in the plugin. The warning is reported as a `**BROKEN**` message, and should therefore fail any testing done on the plugin. Changelog-Fixed: pyln: Fixed HTLCs hanging indefinitely if the hook function raises an exception. A safe fallback result is now returned instead. |
||
---|---|---|
.. | ||
init | ||
plugins | ||
pylightning | ||
pyln-client | ||
pyln-proto | ||
pyln-spec | ||
pyln-testing | ||
bootstrap-node.sh | ||
Dockerfile.builder | ||
Dockerfile.builder.fedora | ||
lightning-cli.bash-completion | ||
linuxarm32v7.Dockerfile | ||
linuxarm64v8.Dockerfile | ||
short_channel_id-to-txid.sh | ||
startup_regtest.sh |