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

pytest: speed up test_keysend_description_size_limit

Public commit record

What the developer wrote

Authored by Rusty Russell

63/100 · Adequate
pytest: speed up test_keysend_description_size_limit

Starting up two nodes for each variant is slow, so do this internally.
Also check that the descriptions are correct, not just that there is
some invoice!

Before:
================================ 7 passed in 75.63s (0:01:15) ================================

After:
===================================== 1 passed in 12.62s =====================================

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit is a straightforward test-only speedup. It refactors a single pytest test so it creates one pair of test nodes and loops through several payload lengths internally, instead of launching fresh nodes for every length. It also adds a stronger assertion checking invoice descriptions and amounts. There is no change to production code, no security fix, and no security-relevant behavior change.

Recommended action

No security action needed. This is a test optimization and can be reviewed as normal code quality/maintenance.

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.