You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Test that the slope (commit_tx_fee_sat/num_htlcs) is consistent with per_outbound_htlc_counterparty_commit_tx_fee_msat
2437
+
// We previously rounded down the per output fee in `per_outbound_htlc_counterparty_commit_tx_fee_msat` causing the discrepancy with (commit_tx_fee_sat/num_htlcs),
2438
+
// this test guards against this behavior
2439
+
2440
+
let feerate = 267;// ~250sat/vb, some feerate that causes a big delta if the per output fee is rounded down, here 267 * 172 / 1000 = 45.924
2441
+
let num_htlcs = 966;// BOLT #2 maximum number of htlcs on a commit tx
2442
+
2443
+
let features = ChannelTypeFeatures::anchors_zero_htlc_fee_and_dependencies();
0 commit comments