Add block 434873 with a bad version field.

This commit is contained in:
Henry de Valence 2020-03-18 17:13:30 -07:00 committed by Deirdre Connolly
parent 6ec934a8d7
commit 824193eeeb
2 changed files with 8 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -110,16 +110,17 @@ fn deserialize_blockheader() {
#[test] #[test]
fn deserialize_block() { fn deserialize_block() {
let block = Block::zcash_deserialize(&test_vectors::BLOCK_MAINNET_GENESIS_BYTES[..]) Block::zcash_deserialize(&test_vectors::BLOCK_MAINNET_GENESIS_BYTES[..])
.expect("block test vector should deserialize"); .expect("block test vector should deserialize");
println!("{:#?}", block); Block::zcash_deserialize(&test_vectors::BLOCK_MAINNET_1_BYTES[..])
let block = Block::zcash_deserialize(&test_vectors::BLOCK_MAINNET_1_BYTES[..])
.expect("block test vector should deserialize"); .expect("block test vector should deserialize");
println!("{:#?}", block);
// https://explorer.zcha.in/blocks/415000 // https://explorer.zcha.in/blocks/415000
let block = Block::zcash_deserialize(&test_vectors::BLOCK_MAINNET_415000_BYTES[..]) Block::zcash_deserialize(&test_vectors::BLOCK_MAINNET_415000_BYTES[..])
.expect("block test vector should deserialize");
// https://explorer.zcha.in/blocks/434873
// this one has a bad version field
Block::zcash_deserialize(&test_vectors::BLOCK_MAINNET_434873_BYTES[..])
.expect("block test vector should deserialize"); .expect("block test vector should deserialize");
println!("{:#?}", block);
} }
proptest! { proptest! {