Browse Source

connectd: setup chainparams

We are going to signal the genesis block hash in the init message.
travis-debug
darosior 5 years ago
committed by Christian Decker
parent
commit
e6b8a02446
  1. 1
      connectd/connect_wire.csv
  2. 1
      connectd/connectd.c

1
connectd/connect_wire.csv

@ -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

Can't render this file because it has a wrong number of fields in line 6.

1
connectd/connectd.c

@ -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…
Cancel
Save