mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
connectd: setup chainparams
We are going to signal the genesis block hash in the init message.
This commit is contained in:
parent
c84473f82c
commit
e6b8a02446
2 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <lightningd/gossip_msg.h>
|
||||
|
||||
msgtype,connectctl_init,2000
|
||||
msgdata,connectctl_init,chainparams,chainparams,
|
||||
msgdata,connectctl_init,id,node_id,
|
||||
msgdata,connectctl_init,num_wireaddrs,u16,
|
||||
msgdata,connectctl_init,wireaddrs,wireaddr_internal,num_wireaddrs
|
||||
|
|
|
|
@ -1145,6 +1145,7 @@ static struct io_plan *connect_init(struct io_conn *conn,
|
|||
/* Fields which require allocation are allocated off daemon */
|
||||
if (!fromwire_connectctl_init(
|
||||
daemon, msg,
|
||||
&chainparams,
|
||||
&daemon->id,
|
||||
&proposed_wireaddr,
|
||||
&proposed_listen_announce,
|
||||
|
|
Loading…
Add table
Reference in a new issue