Skip to content

Comments

Fix balance fuzz tests#3251

Merged
t-bast merged 1 commit intomasterfrom
fix-fuzz-test
Feb 20, 2026
Merged

Fix balance fuzz tests#3251
t-bast merged 1 commit intomasterfrom
fix-fuzz-test

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Feb 20, 2026

Those tests started randomly failing after moving to anchor outputs. The reason is that anchor outputs have a bigger commit weight than non anchor channels, and with our initial balance allocation we sometimes reached a point where the remote had exhausted all of its balance to pay commit fees (when the feerate was around 10 000 sat/kw), so the local couldn't send HTLCs (RemoteCannotAffordFeesForNewHtlc). This is an expected situation where we cannot do anything except wait for pending HTLCs to resolve before sending other HTLCs.

We simply increase the initial balance to avoid running into this case. We also remove the skip case (which wasn't working at all, we should have used the cancel scalatest helper if we wanted to interrupt the test without failing it) and allow failures during the initial HTLC setup (which can happen if HTLCs are larger than the available balance).

Those tests started randomly failing after moving to anchor outputs.
The reason is that anchor outputs have a bigger commit weight than non
anchor channels, and with our initial balance allocation we sometimes
reached a point where the *remote* had exhausted all of its balance to
pay commit fees (when the feerate was around 10 000 sat/kw), so the
*local* couldn't send HTLCs (`RemoteCannotAffordFeesForNewHtlc`). This
is an expected situation where we cannot do anything except wait for
pending HTLCs to resolve before sending other HTLCs.

We simply increase the initial balance to avoid running into this case.
We also remove the `skip` case (which wasn't working at all, we should
have used the `cancel` scalatest helper if we wanted to interrupt the
test without failing it) and allow failures during the initial HTLC
setup (which can happen if HTLCs are larger than the available balance).
@t-bast t-bast requested review from pm47 and sstone February 20, 2026 08:09
@t-bast t-bast merged commit 7c52250 into master Feb 20, 2026
1 of 3 checks passed
@t-bast t-bast deleted the fix-fuzz-test branch February 20, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants