mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
elements: Remove global is_elements variable in favor of chainparams
No need to keep duplicate globals.
This commit is contained in:
committed by
Rusty Russell
parent
ef7a63d8f8
commit
d5f0c08a88
@@ -543,7 +543,6 @@ static struct command_result *handle_init(struct command *init_cmd,
|
||||
nettok = json_delve(buf, configtok, ".network");
|
||||
network = json_strdup(tmpctx, buf, nettok);
|
||||
chainparams = chainparams_for_network(network);
|
||||
is_elements = chainparams->is_elements;
|
||||
|
||||
rpctok = json_delve(buf, configtok, ".rpc-file");
|
||||
rpc_conn.fd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
|
||||
Reference in New Issue
Block a user