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

bkpr: remove redundant account_onchain_fees

Public commit record

What the developer wrote

Authored by Rusty Russell

68/100 · Adequate
bkpr: remove redundant account_onchain_fees

It's account_get_chain_fees() without the ORDER BY clause, *and* it's
only used on the run-recorder.c test.

I also got ChatGPT to compare them, in case I missed something subtle.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit removes an unused duplicate function from the bookkeeping plugin and switches the only test that used it to an equivalent existing function. There is no security-relevant change: the removed code and its replacement read the same database table with the same columns; the only difference was the sort order of results, which does not affect correctness here.

Recommended action

No security action required. This is a routine code-cleanup/refactoring change.

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.