From c89d9c48ac1094976bc3936f45e90b28b190cb0e Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 15 Nov 2022 10:46:18 +1100 Subject: [PATCH] Move merkle_tree.rs to merkle_tree/mod.rs In preparation for moving `MerkleBlock` into the `merkle_tree` module; create a new directory for the module and move `merkle_tree.rs` to `merkle_tree/mod.rs`. --- bitcoin/src/{merkle_tree.rs => merkle_tree/mod.rs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename bitcoin/src/{merkle_tree.rs => merkle_tree/mod.rs} (96%) diff --git a/bitcoin/src/merkle_tree.rs b/bitcoin/src/merkle_tree/mod.rs similarity index 96% rename from bitcoin/src/merkle_tree.rs rename to bitcoin/src/merkle_tree/mod.rs index a9cfb385..dfcb2cd2 100644 --- a/bitcoin/src/merkle_tree.rs +++ b/bitcoin/src/merkle_tree/mod.rs @@ -117,7 +117,7 @@ mod tests { #[test] fn both_merkle_root_functions_return_the_same_result() { // testnet block 000000000000045e0b1660b6445b5e5c5ab63c9a4f956be7e1e69be04fa4497b - let segwit_block = include_bytes!("../tests/data/testnet_block_000000000000045e0b1660b6445b5e5c5ab63c9a4f956be7e1e69be04fa4497b.raw"); + let segwit_block = include_bytes!("../../tests/data/testnet_block_000000000000045e0b1660b6445b5e5c5ab63c9a4f956be7e1e69be04fa4497b.raw"); let block: Block = deserialize(&segwit_block[..]).expect("Failed to deserialize block"); assert!(block.check_merkle_root()); // Sanity check.