mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
Removing the --ignore-dbversion option
It's no longer used and we definitely do not want to run with an outdated or future db, so we'll terminate if we can't upgrade or the version is newer than what we understand. Signed-off-by: Christian Decker <decker.christian@gmai.com>
This commit is contained in:
committed by
Rusty Russell
parent
a9f02a8985
commit
6d1bcc2c32
@@ -62,9 +62,6 @@ struct config {
|
||||
/* How long between changing commit and sending COMMIT message. */
|
||||
struct timerel commit_time;
|
||||
|
||||
/* Whether to ignore database version. */
|
||||
bool db_version_ignore;
|
||||
|
||||
/* IPv4 or IPv6 address to announce to the network */
|
||||
struct ipaddr ipaddr;
|
||||
};
|
||||
|
||||
@@ -225,10 +225,6 @@ static void config_register_opts(struct lightningd *ld)
|
||||
&ld->config.fee_per_satoshi,
|
||||
"Microsatoshi fee for every satoshi in HTLC");
|
||||
|
||||
opt_register_noarg("--ignore-dbversion", opt_set_bool,
|
||||
&ld->config.db_version_ignore,
|
||||
"Continue despite invalid database version (DANGEROUS!)");
|
||||
|
||||
opt_register_arg("--ipaddr", opt_set_ipaddr, NULL,
|
||||
&ld->config.ipaddr,
|
||||
"Set the IP address (v4 or v6) to announce to the network for incoming connections");
|
||||
@@ -298,9 +294,6 @@ static const struct config testnet_config = {
|
||||
/* Take 0.001% */
|
||||
.fee_per_satoshi = 10,
|
||||
|
||||
/* Don't ignore database version */
|
||||
.db_version_ignore = false,
|
||||
|
||||
/* Do not advertise any IP */
|
||||
.ipaddr.type = 0,
|
||||
};
|
||||
@@ -359,9 +352,6 @@ static const struct config mainnet_config = {
|
||||
/* Take 0.001% */
|
||||
.fee_per_satoshi = 10,
|
||||
|
||||
/* Don't ignore database version */
|
||||
.db_version_ignore = false,
|
||||
|
||||
/* Do not advertise any IP */
|
||||
.ipaddr.type = 0,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user