From de1b3a623aebaa7b813fc3786ac2ea90237fe6bb Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Wed, 13 Nov 2024 18:18:46 -0300 Subject: [PATCH] fix test --- zebra-rpc/src/methods/tests/vectors.rs | 70 -------------------------- 1 file changed, 70 deletions(-) diff --git a/zebra-rpc/src/methods/tests/vectors.rs b/zebra-rpc/src/methods/tests/vectors.rs index 58e4ddcec37..c9662d51ce6 100644 --- a/zebra-rpc/src/methods/tests/vectors.rs +++ b/zebra-rpc/src/methods/tests/vectors.rs @@ -156,76 +156,6 @@ async fn rpc_getblock() { let orchard = OrchardTrees { size: 0 }; let trees = GetBlockTrees { sapling, orchard }; - // Make height calls with verbosity=3 and check response - for (i, block) in blocks.iter().enumerate() { - let get_block = rpc - .get_block(i.to_string(), Some(3u8)) - .await - .expect("We should have a GetBlock struct"); - - assert_eq!( - get_block, - GetBlock::Object { - hash: GetBlockHash(block.hash()), - confirmations: (blocks.len() - i).try_into().expect("valid i64"), - height: Some(Height(i.try_into().expect("valid u32"))), - time: None, - tx: block - .transactions - .iter() - .map(|tx| tx.hash().encode_hex()) - .collect(), - trees, - size: None, - version: None, - merkle_root: None, - final_sapling_root: None, - final_orchard_root: None, - nonce: None, - solution: None, - bits: None, - difficulty: None, - previous_block_hash: None, - next_block_hash: None - } - ); - } - - // Make hash calls with verbosity=3 and check response - for (i, block) in blocks.iter().enumerate() { - let get_block = rpc - .get_block(blocks[i].hash().to_string(), Some(3u8)) - .await - .expect("We should have a GetBlock struct"); - - assert_eq!( - get_block, - GetBlock::Object { - hash: GetBlockHash(block.hash()), - confirmations: (blocks.len() - i).try_into().expect("valid i64"), - height: None, - time: None, - tx: block - .transactions - .iter() - .map(|tx| tx.hash().encode_hex()) - .collect(), - trees, - size: None, - version: None, - merkle_root: None, - final_sapling_root: None, - final_orchard_root: None, - nonce: None, - solution: None, - bits: None, - difficulty: None, - previous_block_hash: None, - next_block_hash: None - } - ); - } - // Make height calls with verbosity=1 and check response for (i, block) in blocks.iter().enumerate() { let get_block = rpc