mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
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:
@@ -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) ?
|
||||
|
||||
Reference in New Issue
Block a user