elements: Tell closingd in which network it is running

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2019-05-06 20:45:43 +02:00 committed by Rusty Russell
parent 4057fd24af
commit b016ce94e8
3 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
msgtype,closing_init,2001
msgdata,closing_init,chain_hash,chain_hash,
msgdata,closing_init,pps,per_peer_state,
msgdata,closing_init,chain_hash,bitcoin_blkid,
msgdata,closing_init,funding_txid,bitcoin_txid,
msgdata,closing_init,funding_txout,u16,
msgdata,closing_init,funding_satoshi,amount_sat,

1 #include <common/cryptomsg.h>
5 msgtype,closing_init,2001
6 msgdata,closing_init,chain_hash,chain_hash,
7 msgdata,closing_init,pps,per_peer_state,
8 msgdata,closing_init,chain_hash,bitcoin_blkid,
9 msgdata,closing_init,funding_txid,bitcoin_txid,
10 msgdata,closing_init,funding_txout,u16,
11 msgdata,closing_init,funding_satoshi,amount_sat,

View File

@ -612,6 +612,7 @@ int main(int argc, char *argv[])
/* stdin == requests, 3 == peer, 4 = gossip, 5 = gossip_store, 6 = hsmd */
per_peer_state_set_fds(pps, 3, 4, 5);
chainparams = chainparams_by_chainhash(&chain_hash);
is_elements = chainparams->is_elements;
status_debug("out = %s/%s",
type_to_string(tmpctx, struct amount_sat, &out[LOCAL]),

View File

@ -8,6 +8,7 @@
#include <errno.h>
#include <gossipd/gen_gossip_wire.h>
#include <inttypes.h>
#include <lightningd/bitcoind.h>
#include <lightningd/chaintopology.h>
#include <lightningd/channel.h>
#include <lightningd/closing_control.h>