fix function name in panic message for chain_hash_and_genesis_block
What changed, and why it matters
This commit fixes a typo in a test-only panic error message. The message previously referenced a function name that did not exist; it now references the correct function name. There is no change to runtime code, no security fix, and no user-facing behavior change.
No security action needed. Treat as a normal non-security maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
In bitcoin/src/blockdata/constants.rs, inside a test module’s match exhaustiveness check, the panic message string was corrected from ‘chain_hash_genesis_block’ to ‘chain_hash_and_genesis_block’. This is purely a diagnostic string update within test code. No logic, constants, or public APIs were modified.
Changed components
bitcoin/src/blockdata/constants.rs (test module only)Inspect captured patch +1 / −1
diff --git a/bitcoin/src/blockdata/constants.rs b/bitcoin/src/blockdata/constants.rs
index 8e3f1c35..589323b1 100644
--- a/bitcoin/src/blockdata/constants.rs
+++ b/bitcoin/src/blockdata/constants.rs
@@ -388,7 +388,7 @@ mod test {
Network::Testnet(TestnetVersion::V4) => {},
Network::Signet => {},
Network::Regtest => {},
- _ => panic!("update ChainHash::using_genesis_block and chain_hash_genesis_block with new variants"),
+ _ => panic!("update ChainHash::using_genesis_block and chain_hash_and_genesis_block with new variants"),
}
}
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.