From 3963b0040e76718d528ddae14eeb1b526376ec03 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 26 Apr 2019 15:57:05 +0200 Subject: [PATCH] elements: openingd needs to know it's using an elements chain Signed-off-by: Christian Decker --- openingd/openingd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openingd/openingd.c b/openingd/openingd.c index 8526e39e4..e94d5a5c7 100644 --- a/openingd/openingd.c +++ b/openingd/openingd.c @@ -1452,6 +1452,8 @@ int main(int argc, char *argv[]) * regtest modes, so we have a general "parameters for this chain" * function. */ state->chainparams = chainparams_by_chainhash(&chain_hash); + is_elements = state->chainparams->is_elements; + /*~ Initially we're not associated with a channel, but * handle_peer_gossip_or_error compares this. */ memset(&state->channel_id, 0, sizeof(state->channel_id));