Fix AddrV1 Decoder Typographical Error
What changed, and why it matters
This commit fixes a typo in a code comment. The comment on the decoder for the older Bitcoin address message format (AddrV1) incorrectly said it decoded the newer format (AddrV2). No actual code behavior changed.
No action needed. This is a documentation-only typo fix with no security relevance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change is a single-word correction in a Rust doc comment for AddrV1MessageDecoder in p2p/src/address.rs. The comment previously referenced AddrV2Message; it now correctly references AddrV1Message. There is no functional code change, no logic change, and no security impact.
Changed components
p2p/src/address.rs documentation comment for AddrV1MessageDecoderInspect captured patch +1 / −1
diff --git a/p2p/src/address.rs b/p2p/src/address.rs
index c6ad6548..9dc3e8cd 100644
--- a/p2p/src/address.rs
+++ b/p2p/src/address.rs
@@ -264,7 +264,7 @@ impl encoding::Encodable for AddrV1Message {
type AddrV1MessageInnerDecoder = Decoder2<ArrayDecoder<4>, AddressDecoder>;
-/// The decoder for an [`AddrV2Message`].
+/// The decoder for an [`AddrV1Message`].
#[derive(Debug, Clone)]
pub struct AddrV1MessageDecoder(AddrV1MessageInnerDecoder);
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.