Browse Source

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>
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
6d1bcc2c32
  1. 3
      lightningd/lightningd.h
  2. 10
      lightningd/options.c

3
lightningd/lightningd.h

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

10
lightningd/options.c

@ -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,
};

Loading…
Cancel
Save