[v0.20.x-branch] mod: bump lightning-onion to v1.3.0 #11165
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 270 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11165"
general
weight: 0.35
gijswijs
Change Description
Bumps
lightning-onionfrom a 2024-08 pseudo-version (v1.2.1-0.20240815225420-8b40adf04ab9) to v1.3.0, bringing the v0.20 branch up to the version v0.21 already carries.v1.3.0 includes lightning-onion#74, which bounds hop payload parsing to the routing information length, and #75, the optional
NoOpReplayLog. Master took this version in #10089 as part of onion messaging; the v0.20 line was never updated.Two indirect requirements move because lightning-onion v1.3.0's own
go.modrequires them:go-md2manv2.0.4 andblackfridayv2.1.0 (which drops the now-unusedsanitized_anchor_name). A minimalgo.mod-only edit is rejected bygo build("updates to go.mod needed"), so these are part of the change, not tidy churn.Source adaptations
Two, both identical to what master did in #10089:
sphinx.MaxPayloadSize→sphinx.MaxRoutingPayloadSize. Same value (1300), so pathfinding behaviour is unchanged. One call inrouting/pathfind.go, two inhtlcswitch/hop/fuzz_test.go.HopPayload.Decodewas replaced by theDecodeHopPayloadfunction;FuzzHopPayloadupdated to match.Every other symbol lnd v0.20 uses (
NewOnionPacket,NewRouter,DeterministicPacketFiller,ProcessOnionPacket, theReplayLoginterface) is signature-compatible.Verification
go build ./...passes.go vet ./...passes, apart from two pre-existingmusig2v040warnings unrelated to this change.go testpasses in every package importing lightning-onion:htlcswitch/hop,payments/db,routing,routing/route,routing/blindedpath,zpay32,lnrpc/routerrpc,contractcourt,channeldb/migration_01_to_11../htlcswitchhas five failing tests (TestChannelLinkBandwidthConsistency,TestChannelLinkTrimCircuitsNoCommit,TestChannelLinkCleanupSpuriousResponses,TestPipelineSettle,TestSwitchDustForwarding). They fail identically on a cleanv0.20.x-branchcheckout with matching timings, and neitherlink_test.gonorswitch_test.goexercises sphinx. Pre-existing on the branch, not caused here.Steps to Test
go test ./htlcswitch/hop/ ./routing/on this branch.