Skip to content

Commit

Permalink
relax feerate increase security
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt authored and yaslama committed Jan 4, 2024
1 parent 76cd323 commit 65dff00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channeld/full_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static bool local_opener_has_fee_headroom(const struct channel *channel,

/* Now, how much would it cost us if feerate increases 100% and we added
* another HTLC? */
fee = commit_tx_base_fee(2 * feerate, untrimmed + 1,
fee = commit_tx_base_fee(1.1 * feerate, untrimmed + 1,
option_anchor_outputs,
option_anchors_zero_fee_htlc_tx);
if (amount_msat_greater_eq_sat(remainder, fee))
Expand Down

0 comments on commit 65dff00

Please sign in to comment.