From 54675546abc3147a7e9195643e37cf15d88d6e93 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Tue, 19 Jan 2021 12:37:07 +0100 Subject: [PATCH] doc: openchannel note close_to can only be set once --- doc/PLUGINS.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/PLUGINS.md b/doc/PLUGINS.md index f659eb90c..cfb9a6c03 100644 --- a/doc/PLUGINS.md +++ b/doc/PLUGINS.md @@ -990,7 +990,12 @@ e.g. } ``` -Note that `close_to` must be a valid address for the current chain; an invalid address will cause the node to exit with an error. +Note that `close_to` must be a valid address for the current chain, +an invalid address will cause the node to exit with an error. + +Note that `openchannel` is a chained hook. Therefore `close_to` will only be +evaluated for the first plugin that sets it. If more than one plugin tries to +set a `close_to` address an error will be logged. ### `htlc_accepted`