elements: Remove global is_elements variable in favor of chainparams

No need to keep duplicate globals.
This commit is contained in:
Christian Decker
2019-09-26 00:42:26 +02:00
committed by Rusty Russell
parent ef7a63d8f8
commit d5f0c08a88
23 changed files with 48 additions and 37 deletions

View File

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