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

fuzz-tests: Add a test for `calculate_our_funding()`

Public commit record

What the developer wrote

Authored by Chandra Pratap

83/100 · Strong
fuzz-tests: Add a test for `calculate_our_funding()`

Changelog-None: `calculate_our_funding()` in `plugins/funder_policy.c`
is responsible for calculating our funding policy. Add a test for it.
✓ 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 adds a new automated fuzz test for an existing function called calculate_our_funding(), which decides how much bitcoin a Core Lightning node contributes when opening a payment channel. The commit only creates a test file and does not change the actual funding logic. It includes built-in checks that would crash the test if the function ever returns results violating simple rules, such as contributing more than the allowed channel size or more than available funds. There is no indication this commit fixes a security bug or changes production code.

Recommended action

No security action required. Treat as normal test/QA improvement. If running the fuzzer, monitor for crashes that would indicate invariant violations in calculate_our_funding().

Security signals we found

01

No production code changes

02

New fuzz test only

03

Post-condition assertions could detect future bugs in calculate_our_funding()

04

No changelog security claim

05

No CVE or advisory references in commit

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.