mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +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
@ -4,6 +4,7 @@
|
|||||||
#include <lightningd/gossip_msg.h>
|
#include <lightningd/gossip_msg.h>
|
||||||
|
|
||||||
msgtype,connectctl_init,2000
|
msgtype,connectctl_init,2000
|
||||||
|
msgdata,connectctl_init,chainparams,chainparams,
|
||||||
msgdata,connectctl_init,id,node_id,
|
msgdata,connectctl_init,id,node_id,
|
||||||
msgdata,connectctl_init,num_wireaddrs,u16,
|
msgdata,connectctl_init,num_wireaddrs,u16,
|
||||||
msgdata,connectctl_init,wireaddrs,wireaddr_internal,num_wireaddrs
|
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 */
|
/* Fields which require allocation are allocated off daemon */
|
||||||
if (!fromwire_connectctl_init(
|
if (!fromwire_connectctl_init(
|
||||||
daemon, msg,
|
daemon, msg,
|
||||||
|
&chainparams,
|
||||||
&daemon->id,
|
&daemon->id,
|
||||||
&proposed_wireaddr,
|
&proposed_wireaddr,
|
||||||
&proposed_listen_announce,
|
&proposed_listen_announce,
|
||||||
|
Loading…
Reference in New Issue
Block a user