From fcba09dc335a20d313d7e24c5e81f07e9745dda8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 9 Aug 2022 07:49:18 +0930 Subject: [PATCH] doc: document that sendonion doesn't have to specify (but can!) the first_hop channel. This was always the case, though it was ignored. Signed-off-by: Rusty Russell --- doc/lightning-sendonion.7.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/lightning-sendonion.7.md b/doc/lightning-sendonion.7.md index 321a4ad4a..1e64d5335 100644 --- a/doc/lightning-sendonion.7.md +++ b/doc/lightning-sendonion.7.md @@ -42,6 +42,10 @@ to add an HTLC for 1002 millisatoshis and a delay of 21 blocks on top of the cur } ``` +If the first element of *route* does not have "channel" set, a +suitable channel (if any) will be chosen, otherwise that specific +short-channel-id is used. + The *payment_hash* parameter specifies the 32 byte hex-encoded hash to use as a challenge to the HTLC that we are sending. It is specific to the onion and has to match the one the onion was created with.