From 4e8d3f395b1fc215e1fcde915db7544baa652fb2 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Wed, 27 Jan 2021 12:50:30 +0100 Subject: [PATCH] doc: document custommsg hook now chainable --- doc/PLUGINS.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/PLUGINS.md b/doc/PLUGINS.md index dbb52b198..589a5deb2 100644 --- a/doc/PLUGINS.md +++ b/doc/PLUGINS.md @@ -1218,11 +1218,8 @@ ignored by nodes (see ["it's ok to be odd" in the specification][oddok] for details). The plugin must implement the parsing of the message, including the type prefix, since c-lightning does not know how to parse the message. -The result for this hook is currently being discarded. For future uses of the -result we suggest just returning `{'result': 'continue'}`. -This will ensure backward -compatibility should the semantics be changed in future. - +Because this is a chained hook, the daemon expects the result to be +`{'result': 'continue'}`. It will fail if something else is returned. ### `onion_message` and `onion_message_blinded`