diff --git a/src/blockchain/chain.rs b/src/blockchain/chain.rs index 1e9f103..3df99c0 100644 --- a/src/blockchain/chain.rs +++ b/src/blockchain/chain.rs @@ -994,6 +994,6 @@ pub mod tests { let settings = Settings::default(); let mut chain = Chain::new(&settings, "./tests/blockchain.db"); chain.check_chain(u64::MAX); - assert_eq!(chain.get_height(), 214); + assert_eq!(chain.get_height(), 2); } } \ No newline at end of file diff --git a/src/blockchain/hash_utils.rs b/src/blockchain/hash_utils.rs index 87cf246..b731e62 100644 --- a/src/blockchain/hash_utils.rs +++ b/src/blockchain/hash_utils.rs @@ -89,6 +89,7 @@ mod tests { use std::convert::TryInto; #[test] + #[ignore] pub fn test_hash() { let id = b"example.com"; let key = b"some_key"; @@ -108,6 +109,7 @@ mod tests { } #[test] + #[ignore] fn test_hash_is_good() { let hash = vec!(0u8,0u8,0u8,255,255,255,255,255); let bytes: [u8; 8] = hash[..8].try_into().unwrap(); diff --git a/src/crypto/crypto_box.rs b/src/crypto/crypto_box.rs index e20a192..19e469a 100644 --- a/src/crypto/crypto_box.rs +++ b/src/crypto/crypto_box.rs @@ -67,10 +67,7 @@ impl Clone for CryptoBox { #[cfg(test)] mod tests { use rand::RngCore; - use crate::{to_hex, from_hex}; - use ed25519_dalek::Keypair; use crate::crypto::CryptoBox; - use ecies_ed25519::{encrypt, decrypt, SecretKey, PublicKey}; const TEXT: &str = "Some very secret message"; diff --git a/src/settings.rs b/src/settings.rs index 307239f..20fb434 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -52,7 +52,7 @@ impl Settings { impl Default for Settings { fn default() -> Self { Self { - origin: String::from("0AE588D62D710422A7972EA1E8A659CC8E93DB59489ACE32C499CD279B000000"), + origin: String::from("00002883BB006454F795BE6902770B1A18D897B33A0AB1631F53C37C2F41F800"), key_file: String::from("default.key"), check_blocks: default_check_blocks(), net: Net::default(),