doc: Improve checkpoint test comments

Closes #626.
This commit is contained in:
teor 2020-07-10 16:33:43 +10:00 committed by Henry de Valence
parent e58c913897
commit 30effa6a46
1 changed files with 4 additions and 3 deletions

View File

@ -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();
@ -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[..],
] {