Add a comment to regression test

The comment at the top was generated by AI
This commit is contained in:
Jamil Lambert, PhD 2024-06-13 17:09:27 +01:00
parent fc2876ba10
commit 3f4eb07769
1 changed files with 4 additions and 1 deletions

View File

@ -801,7 +801,8 @@ mod tests {
#[test] #[test]
fn regression_2606() { fn regression_2606() {
// Attempt // Attempt to deserialize a partial merkle tree with a number of hashes that would
// overflow the maximum allowed size.
let bytes = hex!( let bytes = hex!(
"000006000000000000000004ee00000004c7f1ccb1000000ffff000000010000\ "000006000000000000000004ee00000004c7f1ccb1000000ffff000000010000\
0000ffffffffff1f000000000400000000000002000000000500000000000000\ 0000ffffffffff1f000000000400000000000002000000000500000000000000\
@ -811,6 +812,8 @@ mod tests {
" "
); );
let deser = encode::deserialize::<MerkleBlock>(&bytes); let deser = encode::deserialize::<MerkleBlock>(&bytes);
// The attempt to deserialize should result in an error.
assert!(deser.is_err()); assert!(deser.is_err());
} }