Fix display msg for BlockHashDecoderError
What changed, and why it matters
This commit fixes a typo in an error message. The error message for a block hash decoding failure incorrectly said 'sequence decoder error' instead of 'block hash decoder error'. It is a cosmetic string correction with no security or functional impact.
No security action needed. Treat as a routine cosmetic fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The Display implementation for BlockHashDecoderError in primitives/src/hash_types/block_hash.rs had a copy-paste error where its error message read ‘sequence decoder error’. The patch changes the string to ‘block hash decoder error’. The underlying error source (self.0) is unchanged, and no logic, parsing, or cryptographic behavior is modified.
Changed components
primitives/src/hash_types/block_hash.rsInspect captured patch +1 / −1
diff --git a/primitives/src/hash_types/block_hash.rs b/primitives/src/hash_types/block_hash.rs
index 0bd98500..b419986a 100644
--- a/primitives/src/hash_types/block_hash.rs
+++ b/primitives/src/hash_types/block_hash.rs
@@ -89,7 +89,7 @@ impl From<Infallible> for BlockHashDecoderError {
impl fmt::Display for BlockHashDecoderError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write_err!(f, "sequence decoder error"; self.0)
+ write_err!(f, "block hash decoder error"; self.0)
}
}
Why this scored 16/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.