multi: bump lnd to v0.21.3-beta #260
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.43) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 359 lines diff across 4 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.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #260"
general
weight: 0.35
guggero
chantools v0.14.x is built against lnd v0.19.0-beta, which knows channel DB schema versions up to 33. lnd v0.21.0 added version 35, so every read-write command fails on a DB last used by lnd v0.21.x:
Changes
go.mod: lnd v0.21.3-beta, loop v0.35.0-beta (brings lndclient v0.21.0-2), pool v0.7.1-beta. Go 1.25.13 is now required (CIGO_VERSIONupdated).lnd/channeldb.go: graph DB is built withgraphdb.NewKVStoreandgraphdb.NewChannelGraph(store).lnd/chanbackup.go,lnd/brontide.go: adapted to changedchanbackup,discovery.Configandpeer.ConfigAPIs. The temporary graph DB fortriggerforcecloseis built from agraphdb.NewKVStore.deletepayments: payments moved topayments/db, now usespaymentsdb.NewKVStore(...).DeletePayments.dropchannelgraph: graph calls take a context and gossip version. Edges are built withmodels.NewV1Channel(the store rejects edges withoutGossipVersion1).ChannelGraph.Wipewas removed upstream, so a localwipeGraphdeletesgraph-node,graph-edge,graph-metaandclosed-scidand re-creates them, like the old lnd code did.lndVersionand generated docs say v0.21.3-beta.root_test.goonly matched 10 hex digits, soTestCompactDBAndDumpChannelsfailed on darwin/arm64 (also on master).zombierecovery_makeoffer.go:strings.Cutinstead ofstrings.Split(...)[0]. Thismodernizefinding also failsgo tool golangci-lint runon master.Behavior change
Read-write commands (
migratedb,dropgraphzombies,dropchannelgraph,removechannel,deletepayments) now migrate older DBs to schema 35. After that the DB can't be opened by lnd older than v0.21.Tested
go vet ./...clean, unit tests pass (itest not run).go tool golangci-lint run(v2.6.2) and the v2.6.2 release binary used by CI (built with Go 1.25.3): 0 issues.dropgraphzombiessuccessfully.Tested on a real node DB
dropgraphzombieson a channel.db from lnd v0.21.xdropchannelgraph(full wipe, then lnd resyncs the graph)dropchannelgraph --fix_onlyand--single_channeldeletepaymentswith and without--failedonlychanbackupagainst the same DBtriggerforceclose(uses thelnd/brontide.gopeer setup)Note:
cmd/chantools/testdata/channel.dbreports schema 20 but already contains theset-id-indexbucket that migration 22 creates, so it can't be migrated read-write by either the old or the new binary. Not changed here.Disclosure: built with assistance from Claude Opus 5.5