AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 15 Bitcoin

pytest: fix flake when htlc_timeout_tx gets short sig:

Public commit record

What the developer wrote

Authored by Rusty Russell

83/100 · Strong
pytest: fix flake when htlc_timeout_tx gets short sig:

```
check_channel_moves(l1, expected_channel1)
> check_chain_moves(l1, expected_chain1)

tests/test_coinmoves.py:942:
...
'account_id': 'wallet',
'blockheight': 115,
'created_index': 15,
- 'credit_msat': Decimal('6358000.00000000'),
- 'debit_msat': 0,
? --
+ 'credit_msat': 6366000,
? +++ ++++++
+ 'debit_msat': 0,
'extra_tags': [],
- 'output_msat': Decimal('6358000.00000000'),
+ 'output_msat': 6366000,
'primary_tag': 'deposit',
'utxo': '4a16b7aceac233ed68bed0f18adfc1ab338b5fc55b696d1376eea173adeac8e3:1',
},
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit fixes a flaky test in Core Lightning's accounting test suite. The test sometimes failed because the amount of 'change' returned from a specific Bitcoin transaction could vary slightly depending on the signature length. The fix makes the test read the actual transaction output value from the blockchain instead of hardcoding an expected value. There is no security issue here—only a test reliability improvement.

Recommended action

No security action needed. This is a test-only fix improving CI reliability.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 10/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.