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

itest: migrate deprecated lnrpc Send* calls to routerrpc V2

Public commit record

What the developer wrote

Authored by Erick Cestari

83/100 · Strong
itest: migrate deprecated lnrpc Send* calls to routerrpc V2

Remove SendToRoute and SendToRouteSync helpers from the test harness and
update integration tests to use routerrpc.SendToRouteV2:

- lnd_routing_test.go: collapse three SendToRoute test cases (sync,
stream, v2) into a single test using SendToRouteV2; update
testSendToRouteErrorPropagation to assert on Failure.Code instead of
PaymentError string
- lnd_channel_policy_test.go: replace streaming SendToRoute with
SendToRouteV2 and assert on HTLCAttempt.Failure instead of
PaymentError string
✓ 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 only changes integration tests for the Lightning Network Daemon (LND). It removes old test helper functions that called deprecated SendToRoute RPC methods and updates the tests to use the newer routerrpc.SendToRouteV2 API. No production code, user-facing RPC behavior, or security-sensitive logic is modified. It is a test-maintenance change with no direct security relevance.

Recommended action

No security action required. Treat as ordinary test refactoring. Optionally verify that the migrated tests still exercise the same failure paths (AmountBelowMinimum, UnknownNextPeer) and that SendToRouteV2 coverage is equivalent to the removed sync/stream variants.

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.