Skip to content

Commit

Permalink
doc: Improve checkpoint test comments
Browse files Browse the repository at this point in the history
Closes #626.
  • Loading branch information
teor2345 authored and hdevalence committed Jul 15, 2020
1 parent e58c913 commit 30effa6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zebra-consensus/src/checkpoint/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,10 @@ async fn multi_item_checkpoint_list() -> Result<(), Report> {
// Parse all the blocks
let mut checkpoint_data = Vec::new();
for b in &[
// This list is used as a checkpoint list, and as a list of blocks to
// verify. So it must be continuous.
&zebra_test::vectors::BLOCK_MAINNET_GENESIS_BYTES[..],
&zebra_test::vectors::BLOCK_MAINNET_1_BYTES[..],
// TODO(teor): not continuous, so they hang
//&zebra_test::vectors::BLOCK_MAINNET_415000_BYTES[..],
//&zebra_test::vectors::BLOCK_MAINNET_434873_BYTES[..],
] {
let block = Arc::<Block>::zcash_deserialize(*b)?;
let hash: BlockHeaderHash = block.as_ref().into();
Expand Down Expand Up @@ -584,8 +583,10 @@ async fn checkpoint_drop_cancel() -> Result<(), Report> {
// Parse all the blocks
let mut checkpoint_data = Vec::new();
for b in &[
// Continous blocks are verified
&zebra_test::vectors::BLOCK_MAINNET_GENESIS_BYTES[..],
&zebra_test::vectors::BLOCK_MAINNET_1_BYTES[..],
// Other blocks can't verify, so they are rejected on drop
&zebra_test::vectors::BLOCK_MAINNET_415000_BYTES[..],
&zebra_test::vectors::BLOCK_MAINNET_434873_BYTES[..],
] {
Expand Down

0 comments on commit 30effa6

Please sign in to comment.