Closed remyers closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 85.94%. Comparing base (
40f13f4
) to head (aa3b823
). Report is 3 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@t-bast I've fixed this PR so that C can claim with 3rd stage txs most of the time, but if C happens to beat F in spending the htlcs directly from the revoked commit, it won't fail the test.
Fix flaky test for punishing a published revoked commit
A race exists because node C can publish the txs to spend the htlcs from the revoked commitment before F publishes their txs to spend two of the htlc outputs.
Instead we handle the rare case of a
txn-mempool-conflict
failure.We will sometimes miss testing that C claims those two htlcs via 3rd stage txs.