From 06820825a58e790e9dcebc47b357a615fd6c0c80 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 25 Nov 2016 18:35:35 +0300 Subject: [PATCH] added tests stubs --- sync/src/compact_block_builder.rs | 13 +++++++++++++ sync/src/synchronization_client.rs | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/sync/src/compact_block_builder.rs b/sync/src/compact_block_builder.rs index e0a1f194..70ec0b49 100644 --- a/sync/src/compact_block_builder.rs +++ b/sync/src/compact_block_builder.rs @@ -61,3 +61,16 @@ fn short_transaction_id(nonce: u64, block_header: &BlockHeader, transaction_hash siphash_transaction_hash_bytes[2..8].into() } + +#[cfg(test)] +mod tests { + #[test] + fn short_transaction_id_is_correct() { + // TODO + } + + #[test] + fn compact_block_is_built_correctly() { + // TODO + } +} diff --git a/sync/src/synchronization_client.rs b/sync/src/synchronization_client.rs index 7410c565..538c5713 100644 --- a/sync/src/synchronization_client.rs +++ b/sync/src/synchronization_client.rs @@ -2180,4 +2180,9 @@ pub mod tests { Task::SendInventory(3, inventory, ServerTaskIndex::None), ]); } + + #[test] + fn relay_new_block_after_sendcmpct() { + // TODO + } }