docs: replace CMerkleBlock with MerkleBlock in test documentation
What changed, and why it matters
This commit only fixes two typos in test documentation comments, changing 'CMerkleBlock' to 'MerkleBlock'. It does not change any actual code, behavior, or security properties.
No action needed. This is a non-security documentation cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies two Rust doc comments inside #[test] functions in bitcoin/src/merkle_tree/block.rs. The comments describe test cases for constructing a MerkleBlock from transaction IDs. No executable code, logic, or data structures were altered.
Changed components
bitcoin/src/merkle_tree/block.rs (test documentation comments only)Inspect captured patch +2 / −2
diff --git a/bitcoin/src/merkle_tree/block.rs b/bitcoin/src/merkle_tree/block.rs
index 43f530f9..005e66db 100644
--- a/bitcoin/src/merkle_tree/block.rs
+++ b/bitcoin/src/merkle_tree/block.rs
@@ -681,7 +681,7 @@ mod tests {
assert_eq!(mb_hex, encode::serialize(&mb).to_lower_hex_string().as_str());
}
- /// Constructs a new CMerkleBlock using a list of txids which will be found in the
+ /// Constructs a new MerkleBlock using a list of txids which will be found in the
/// given block.
#[test]
fn merkleblock_construct_from_txids_found() {
@@ -720,7 +720,7 @@ mod tests {
assert_eq!(index[1], 8);
}
- /// Constructs a new CMerkleBlock using a list of txids which will not be found in the given block
+ /// Constructs a new MerkleBlock using a list of txids which will not be found in the given block
#[test]
fn merkleblock_construct_from_txids_not_found() {
let block = get_block_13b8a();
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.