mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
elements: openingd needs to know it's using an elements chain
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
6b7c3c7a78
commit
3963b0040e
@ -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…
Reference in New Issue
Block a user