|
|
@ -610,10 +610,6 @@ static const struct config testnet_config = { |
|
|
|
/* We're fairly trusting, under normal circumstances. */ |
|
|
|
.anchor_confirms = 1, |
|
|
|
|
|
|
|
/* Testnet fees are crazy, allow infinite feerange. */ |
|
|
|
.commitment_fee_min_percent = 0, |
|
|
|
.commitment_fee_max_percent = 0, |
|
|
|
|
|
|
|
/* Testnet blockspace is free. */ |
|
|
|
.max_concurrent_htlcs = 483, |
|
|
|
|
|
|
@ -658,10 +654,6 @@ static const struct config mainnet_config = { |
|
|
|
/* We're fairly trusting, under normal circumstances. */ |
|
|
|
.anchor_confirms = 3, |
|
|
|
|
|
|
|
/* Insist between 2 and 20 times the 2-block fee. */ |
|
|
|
.commitment_fee_min_percent = 200, |
|
|
|
.commitment_fee_max_percent = 2000, |
|
|
|
|
|
|
|
/* While up to 483 htlcs are possible we do 30 by default (as eclair does) to save blockspace */ |
|
|
|
.max_concurrent_htlcs = 30, |
|
|
|
|
|
|
@ -707,13 +699,6 @@ static const struct config mainnet_config = { |
|
|
|
|
|
|
|
static void check_config(struct lightningd *ld) |
|
|
|
{ |
|
|
|
/* We do this by ensuring it's less than the minimum we would accept. */ |
|
|
|
if (ld->config.commitment_fee_max_percent != 0 |
|
|
|
&& ld->config.commitment_fee_max_percent |
|
|
|
< ld->config.commitment_fee_min_percent) |
|
|
|
fatal("Commitment fee invalid min-max %u-%u", |
|
|
|
ld->config.commitment_fee_min_percent, |
|
|
|
ld->config.commitment_fee_max_percent); |
|
|
|
/* BOLT #2:
|
|
|
|
* |
|
|
|
* The receiving node MUST fail the channel if: |
|
|
@ -861,12 +846,6 @@ static void register_opts(struct lightningd *ld) |
|
|
|
opt_register_arg("--funding-confirms", opt_set_u32, opt_show_u32, |
|
|
|
&ld->config.anchor_confirms, |
|
|
|
"Confirmations required for funding transaction"); |
|
|
|
opt_register_arg("--commit-fee-min=<percent>", opt_set_u32, opt_show_u32, |
|
|
|
&ld->config.commitment_fee_min_percent, |
|
|
|
"Minimum percentage of fee to accept for commitment"); |
|
|
|
opt_register_arg("--commit-fee-max=<percent>", opt_set_u32, opt_show_u32, |
|
|
|
&ld->config.commitment_fee_max_percent, |
|
|
|
"Maximum percentage of fee to accept for commitment (0 for unlimited)"); |
|
|
|
opt_register_arg("--cltv-delta", opt_set_u32, opt_show_u32, |
|
|
|
&ld->config.cltv_expiry_delta, |
|
|
|
"Number of blocks for cltv_expiry_delta"); |
|
|
|