opening: Pass network_index through to openingd

This is needed in order to open channels with the correct
genesis_blockhash.

Reported-By: @sstone
This commit is contained in:
Christian Decker
2017-07-10 13:35:43 +02:00
committed by Rusty Russell
parent 943b6526c7
commit fbc2b65a3d
3 changed files with 8 additions and 2 deletions

View File

@@ -691,6 +691,7 @@ int main(int argc, char *argv[])
u8 channel_flags;
struct utxo *utxos;
u8 *bip32_seed;
u32 network_index;
if (argc == 2 && streq(argv[1], "--version")) {
printf("%s\n", version());
@@ -710,6 +711,7 @@ int main(int argc, char *argv[])
status_failed(WIRE_OPENING_BAD_COMMAND, "%s", strerror(errno));
if (!fromwire_opening_init(msg, NULL,
&network_index,
&state->localconf,
&state->max_to_self_delay,
&state->min_effective_htlc_capacity_msat,