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

paymentsdb: fix test case before testing sql backend

Public commit record

What the developer wrote

Authored by ziggie

95/100 · Strong
paymentsdb: fix test case before testing sql backend

We are now not supporting the LegacyPayload for the onion packet
anymore. All payments and their onion payload need to be tlv
encoded. The sql backend assumes tlv so we have to always set the
in memory presentation of a hop where the legacy parameter is still
available but deprecated to false, otherwise the hops will not be
equal and unit tests for the sql backend will fail when switched
on in the next commits.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
The short version

What changed, and why it matters

This is a test-only adjustment that updates a fake payment route used in unit tests so it matches the new real-world behavior of LND: legacy onion payloads are no longer supported, only modern TLV-encoded payloads. It also adds a code comment and a TODO about eventually removing the now-deprecated LegacyPayload field. There is no runtime security fix here.

Recommended action

No security action required. This is a preparatory test/maintenance commit. Reviewers may verify the SQL backend migration commits that follow correctly handle any persisted legacy payloads.

Security signals we found

01

No production code behavior changed

02

Test fixture updated to reflect deprecated legacy payload support

03

Deprecation comment and TODO added for future field removal

Risk score

Why this scored 15/100

Our methodology →
Potential impact 2/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 9/10
Evidence quality 4/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.