dualopend: use a lower feerate for first commitment tx for anchors.

We need to know both, because in theory we could negotiate a
non-anchor channel even if they support it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-06-26 08:42:21 +09:30
parent 96e198f751
commit 6087decec3
4 changed files with 14 additions and 2 deletions

View File

@@ -2936,6 +2936,7 @@ static struct command_result *json_openchannel_init(struct command *cmd,
oa->our_upfront_shutdown_script,
our_upfront_shutdown_script_wallet_index,
*feerate_per_kw,
unilateral_feerate(cmd->ld->topology, true),
*feerate_per_kw_funding,
channel->channel_flags,
amount_sat_zero(*request_amt) ?
@@ -3478,6 +3479,7 @@ static struct command_result *json_queryrates(struct command *cmd,
oa->our_upfront_shutdown_script,
our_upfront_shutdown_script_wallet_index,
*feerate_per_kw,
unilateral_feerate(cmd->ld->topology, true),
*feerate_per_kw_funding,
channel->channel_flags,
amount_sat_zero(*request_amt) ?