Browse Source

elements: openingd needs to know it's using an elements chain

Signed-off-by: Christian Decker <decker.christian@gmail.com>
travis-debug
Christian Decker 6 years ago
committed by Rusty Russell
parent
commit
3963b0040e
  1. 2
      openingd/openingd.c

2
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));

Loading…
Cancel
Save