build: pin tagged submodules and remove local replacements
What changed, and why it matters
This commit is a routine build housekeeping change. It updates two internal Go module dependencies to newly published tagged versions and removes local directory overrides so that everyone builds with the same published code. There is no indication of a security fix or vulnerability in the commit itself.
No security action required. Treat as normal dependency/build maintenance. If reviewing for supply-chain assurance, verify the published v2.0.1 tags and checksums against the previously used local submodule code.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change updates go.mod to pin github.com/btcsuite/btcd/btcutil/v2 from v2.0.0 to v2.0.1 and github.com/btcsuite/btcd/wire/v2 from v2.0.0 to v2.0.1. It also removes three replace directives that pointed to local subdirectories (./btcutil, ./v2transport, ./wire). go.sum is regenerated with the published module checksums. The commit message frames this as build hygiene to make local builds and downstream consumers resolve identical code.
Changed components
go.modgo.sumInspect captured patch +8 / −8
diff --git a/go.mod b/go.mod
index cc0b0ef..2bc5e30 100644
--- a/go.mod
+++ b/go.mod
@@ -5,12 +5,12 @@ go 1.25.0
require (
github.com/btcsuite/btcd/address/v2 v2.0.0
github.com/btcsuite/btcd/btcec/v2 v2.5.0
- github.com/btcsuite/btcd/btcutil/v2 v2.0.0
+ github.com/btcsuite/btcd/btcutil/v2 v2.0.1
github.com/btcsuite/btcd/chaincfg/v2 v2.0.0
github.com/btcsuite/btcd/chainhash/v2 v2.0.0
github.com/btcsuite/btcd/txscript/v2 v2.0.0
github.com/btcsuite/btcd/v2transport v1.1.0
- github.com/btcsuite/btcd/wire/v2 v2.0.0
+ github.com/btcsuite/btcd/wire/v2 v2.0.1
github.com/btcsuite/btclog v1.0.0
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792
@@ -40,12 +40,6 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
-replace (
- github.com/btcsuite/btcd/btcutil/v2 => ./btcutil
- github.com/btcsuite/btcd/v2transport => ./v2transport
- github.com/btcsuite/btcd/wire/v2 => ./wire
-)
-
// The retract statements below fixes an accidental push of the tags of a btcd
// fork.
retract (
diff --git a/go.sum b/go.sum
index f0c211f..54a0cb1 100644
--- a/go.sum
+++ b/go.sum
@@ -4,12 +4,18 @@ github.com/btcsuite/btcd/address/v2 v2.0.0 h1:UVu8Hal6Siu4XastFe+JX5JkeBYONbDUIY
github.com/btcsuite/btcd/address/v2 v2.0.0/go.mod h1:htJK1AtaeK3bKNfZY63ep2oN8LbrI6qvmPGe1vekb3I=
github.com/btcsuite/btcd/btcec/v2 v2.5.0 h1:KioMXOWa76b86sTZZOmbzv/ldaQCmB8KFAyn5PbB8E8=
github.com/btcsuite/btcd/btcec/v2 v2.5.0/go.mod h1:+K/MYXcLBtHEQjRbjHuJChuybk4LCgjdjgRwil+e+Kk=
+github.com/btcsuite/btcd/btcutil/v2 v2.0.1 h1:ZDz+9GrvetBfvbVv2J93hePAFH5BNjE5Eaz4jMQZSY0=
+github.com/btcsuite/btcd/btcutil/v2 v2.0.1/go.mod h1:W35r9Hm3PUWF09us9CcMhRLtNDj/6f66b004cm3vECU=
github.com/btcsuite/btcd/chaincfg/v2 v2.0.0 h1:M/RTtXfXA9odC1RUEOyZFXj/NXKVHPYZXVjb60xTOok=
github.com/btcsuite/btcd/chaincfg/v2 v2.0.0/go.mod h1:rHgHIXYYfn70m25a+BJ9f9z7VZAsTiDQGB2XYaippGQ=
github.com/btcsuite/btcd/chainhash/v2 v2.0.0 h1:PMLlSloHJuEeB80XG9EjpXWNEKAZAMLl6YHZ6YsEuoA=
github.com/btcsuite/btcd/chainhash/v2 v2.0.0/go.mod h1:mKxcZ7oGTXE7IRV+sS9hP4EVBwc/SzfNR+52IsOP9j8=
github.com/btcsuite/btcd/txscript/v2 v2.0.0 h1:pEmmHaC8eRx6KSB63zSVJD7qrit9/c9cLSrw++XrYP8=
github.com/btcsuite/btcd/txscript/v2 v2.0.0/go.mod h1:pZXabc11Xr9nz/18kXY3yErdAajYc3gi28Zqb3KqlFo=
+github.com/btcsuite/btcd/v2transport v1.1.0 h1:njd4LQFXdq592zuRECMz5/X/4WWwa6mRPejc9UjL1M0=
+github.com/btcsuite/btcd/v2transport v1.1.0/go.mod h1:DGKT6nNiAbZPT3ihU99GUUxsSiTbipHHyLIlaNJsZR0=
+github.com/btcsuite/btcd/wire/v2 v2.0.1 h1:edmb35tvRyQpFp331L9PwZFccaTCOQwevSsU6ra4BR4=
+github.com/btcsuite/btcd/wire/v2 v2.0.1/go.mod h1:ENBpJL0JYUNlqvajhIFTOcWGNNumjCynDk4PL0OG58I=
github.com/btcsuite/btclog v1.0.0 h1:sEkpKJMmfGiyZjADwEIgB1NSwMyfdD1FB8v6+w1T0Ns=
github.com/btcsuite/btclog v1.0.0/go.mod h1:w7xnGOhwT3lmrS4H3b/D1XAXxvh+tbhUm8xeHN2y3TQ=
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw=
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.