lightningd: tell connectd about the custom messages.

We re-send whenever a plugin which allows them starts/finishes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-10-23 21:59:51 +10:30
parent 774719530e
commit ad7dcf381e
7 changed files with 88 additions and 11 deletions

View File

@@ -40,6 +40,11 @@ msgtype,connectd_activate,2025
# Do we listen?
msgdata,connectd_activate,listen,bool,
# Set the allowed (i.e. don't hang up on!) unknown messages.
msgtype,connectd_set_custommsgs,2007
msgdata,connectd_set_custommsgs,len,u32,
msgdata,connectd_set_custommsgs,msgnums,u16,len
# Connectd->master, I am ready.
msgtype,connectd_activate_reply,2125
msgdata,connectd_activate_reply,failmsg,?wirestring,
1 #include <bitcoin/block.h>
40 msgtype,connectd_activate_reply,2125 msgtype,connectd_set_custommsgs,2007
41 msgdata,connectd_activate_reply,failmsg,?wirestring, msgdata,connectd_set_custommsgs,len,u32,
42 # Master -> connectd: connect to a peer. msgdata,connectd_set_custommsgs,msgnums,u16,len
43 # Connectd->master, I am ready.
44 msgtype,connectd_activate_reply,2125
45 msgdata,connectd_activate_reply,failmsg,?wirestring,
46 # Master -> connectd: connect to a peer.
47 msgtype,connectd_connect_to_peer,2001
48 msgtype,connectd_connect_to_peer,2001 msgdata,connectd_connect_to_peer,id,node_id,
49 msgdata,connectd_connect_to_peer,id,node_id, msgdata,connectd_connect_to_peer,len,u32,
50 msgdata,connectd_connect_to_peer,len,u32, msgdata,connectd_connect_to_peer,addrs,wireaddr,len