From e6b8a02446b69c8379bab9e33dc0bb032997f8c3 Mon Sep 17 00:00:00 2001 From: darosior Date: Thu, 28 Nov 2019 12:17:57 +0100 Subject: [PATCH] connectd: setup chainparams We are going to signal the genesis block hash in the init message. --- connectd/connect_wire.csv | 1 + connectd/connectd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/connectd/connect_wire.csv b/connectd/connect_wire.csv index 9407889a1..7f80adae0 100644 --- a/connectd/connect_wire.csv +++ b/connectd/connect_wire.csv @@ -4,6 +4,7 @@ #include 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 diff --git a/connectd/connectd.c b/connectd/connectd.c index 9e0c23463..c256d0a33 100644 --- a/connectd/connectd.c +++ b/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,