Add block 434873 with a bad version field.
This commit is contained in:
parent
6ec934a8d7
commit
824193eeeb
File diff suppressed because one or more lines are too long
|
@ -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! {
|
||||||
|
|
Loading…
Reference in New Issue