mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
bitcoind: remove the chainparams member
We now have a global constant, prefer to use it instead of having two variables with the same utility.
This commit is contained in:
committed by
Christian Decker
parent
fdd69af1f6
commit
f075b87137
@@ -3,6 +3,7 @@
|
||||
#include <ccan/opt/opt.h>
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <ccan/utf8/utf8.h>
|
||||
#include <common/utils.h>
|
||||
#include <common/version.h>
|
||||
#include <lightningd/json.h>
|
||||
#include <lightningd/notification.h>
|
||||
@@ -1050,9 +1051,7 @@ plugin_populate_init_request(struct plugin *plugin, struct jsonrpc_request *req)
|
||||
json_add_string(req->stream, "lightning-dir", ld->config_dir);
|
||||
json_add_string(req->stream, "rpc-file", ld->rpc_filename);
|
||||
json_add_bool(req->stream, "startup", plugin->plugins->startup);
|
||||
json_add_string(
|
||||
req->stream, "network",
|
||||
plugin->plugins->ld->topology->bitcoind->chainparams->network_name);
|
||||
json_add_string(req->stream, "network", chainparams->network_name);
|
||||
json_object_end(req->stream);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user