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 + } }