diff --git a/src/tests/helpers.rs b/src/tests/helpers.rs index 79dc4bf24..62a9d6252 100644 --- a/src/tests/helpers.rs +++ b/src/tests/helpers.rs @@ -69,10 +69,6 @@ fn create_unverifiable_block_header(order: u32, parent_hash: H256) -> Header { header } -fn create_unverifiable_block(order: u32, parent_hash: H256) -> Bytes { - create_test_block(&create_unverifiable_block_header(order, parent_hash)) -} - fn create_unverifiable_block_with_extra(order: u32, parent_hash: H256, extra: Option) -> Bytes { let mut header = create_unverifiable_block_header(order, parent_hash); header.extra_data = match extra { @@ -86,6 +82,10 @@ fn create_unverifiable_block_with_extra(order: u32, parent_hash: H256, extra: Op create_test_block(&header) } +fn create_unverifiable_block(order: u32, parent_hash: H256) -> Bytes { + create_test_block(&create_unverifiable_block_header(order, parent_hash)) +} + pub fn generate_dummy_client(block_number: u32) -> GuardedTempResult> { let dir = RandomTempPath::new();