Add a simple test to check that our mainnet blockheader test vector deserializes without error

This commit is contained in:
Deirdre Connolly 2020-02-03 19:29:51 -05:00 committed by Deirdre Connolly
parent 9257d838bd
commit 7ebb5ccd41
1 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,14 @@ fn blockheaderhash_from_blockheader() {
assert_eq!(blockheader, other_header);
}
#[test]
fn deserialize_blockheader() {
// This deserializes without error but the result looks wrong.
// https://explorer.zcha.in/blocks/415000
let header = BlockHeader::zcash_deserialize(&test_vectors::HEADER_MAINNET_415000[..])
.expect("blockheader test vector should deserialize");
}
proptest! {
#[test]