What changed, and why it matters
This commit only reformats code to match the project's style rules. It changes whitespace and indentation in three files and removes one blank line. There are no functional changes, no bug fixes, and no security implications.
No security action needed. Treat as routine code hygiene.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a pure formatting commit (‘make fmt’). It adjusts indentation in addrmgr/network.go, aligns struct field values in chaincfg/params.go, and removes a trailing blank line in wire/msgcfcheckpt_bench_test.go. No logic, constants, or behavior changed.
Changed components
addrmgr/network.gochaincfg/params.gowire/msgcfcheckpt_bench_test.goInspect captured patch +3 / −4
diff --git a/addrmgr/network.go b/addrmgr/network.go
index 66c0743..e86133a 100644
--- a/addrmgr/network.go
+++ b/addrmgr/network.go
@@ -276,7 +276,7 @@ func IsRoutable(na *wire.NetAddressV2) bool {
IsRFC4843(lna) || IsRFC7343(lna) || IsRFC5737(lna) ||
IsRFC6598(lna) || IsLocal(lna) || IsZero(lna) ||
(IsRFC4193(lna) &&
- !IsOnionCatTor(lna)))
+ !IsOnionCatTor(lna)))
}
// GroupKey returns a string representing the network group an address is part
diff --git a/chaincfg/params.go b/chaincfg/params.go
index 8aa6c11..5eda032 100644
--- a/chaincfg/params.go
+++ b/chaincfg/params.go
@@ -560,8 +560,8 @@ var RegressionNetParams = Params{
DeploymentEnder: NewMedianTimeDeploymentEnder(
time.Time{}, // Never expires.
),
- MinActivationHeight: 0,
- AlwaysActiveHeight: 1,
+ MinActivationHeight: 0,
+ AlwaysActiveHeight: 1,
CustomActivationThreshold: 108, // Only needs 75% hash rate.
},
},
diff --git a/wire/msgcfcheckpt_bench_test.go b/wire/msgcfcheckpt_bench_test.go
index 47bcfe0..0bc3b7d 100644
--- a/wire/msgcfcheckpt_bench_test.go
+++ b/wire/msgcfcheckpt_bench_test.go
@@ -115,4 +115,3 @@ func BenchmarkMsgCFCheckptDecodeEmpty(b *testing.B) {
}
}
}
-
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.