What changed, and why it matters
This commit is a routine build-file change. It tells the Go build system to use a local copy of an internal database package (sqldb) instead of fetching a published version from the internet. The commit message explicitly frames this as a temporary workaround for an upcoming feature (gossip V2 sqldb changes). There is no indication of a security fix, vulnerability, or behavior change in the compiled program.
No security action required. Treat as normal dependency/module-management commit. If reviewing, verify the local sqldb directory contents are consistent with the intended gossip V2 work.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds a replace directive in go.mod pointing github.com/lightningnetwork/lnd/sqldb to the local ./sqldb directory, and removes the corresponding checksum lines from go.sum. This is a dependency-management/local-module substitution with no source-code changes. The existing security-related replace for github.com/ulikunitz/xz (referencing GHSA-25xm-hr59-7c27) is left untouched and is not the subject of this commit.
Changed components
go.modgo.sumInspect captured patch +3 / −2
diff --git a/go.mod b/go.mod
index 7c501f8..dc5fbfc 100644
--- a/go.mod
+++ b/go.mod
@@ -202,6 +202,9 @@ require (
sigs.k8s.io/yaml v1.2.0 // indirect
)
+// TODO(elle): remove once the gossip V2 sqldb changes have been made.
+replace github.com/lightningnetwork/lnd/sqldb => ./sqldb
+
// This replace is for https://github.com/advisories/GHSA-25xm-hr59-7c27
replace github.com/ulikunitz/xz => github.com/ulikunitz/xz v0.5.11
diff --git a/go.sum b/go.sum
index 4c1780d..4507c53 100644
--- a/go.sum
+++ b/go.sum
@@ -382,8 +382,6 @@ github.com/lightningnetwork/lnd/kvdb v1.4.16 h1:9BZgWdDfjmHRHLS97cz39bVuBAqMc4/p
github.com/lightningnetwork/lnd/kvdb v1.4.16/go.mod h1:HW+bvwkxNaopkz3oIgBV6NEnV4jCEZCACFUcNg4xSjM=
github.com/lightningnetwork/lnd/queue v1.1.1 h1:99ovBlpM9B0FRCGYJo6RSFDlt8/vOkQQZznVb18iNMI=
github.com/lightningnetwork/lnd/queue v1.1.1/go.mod h1:7A6nC1Qrm32FHuhx/mi1cieAiBZo5O6l8IBIoQxvkz4=
-github.com/lightningnetwork/lnd/sqldb v1.0.11 h1:X8J3OvdIhJVniQG78Qsp3niErl1zdGMTPvzgiLMWOOo=
-github.com/lightningnetwork/lnd/sqldb v1.0.11/go.mod h1:oOdZ7vjmAUmI9He+aFHTunnxKVefHZAfJttZdz16hSg=
github.com/lightningnetwork/lnd/ticker v1.1.1 h1:J/b6N2hibFtC7JLV77ULQp++QLtCwT6ijJlbdiZFbSM=
github.com/lightningnetwork/lnd/ticker v1.1.1/go.mod h1:waPTRAAcwtu7Ji3+3k+u/xH5GHovTsCoSVpho0KDvdA=
github.com/lightningnetwork/lnd/tlv v1.3.2 h1:MO4FCk7F4k5xPMqVZF6Nb/kOpxlwPrUQpYjmyKny5s0=
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.