diff --git a/src/tools.rs b/src/tools.rs index 722cdb7..40ac4ee 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -242,7 +242,7 @@ mod tests { use primitive_types::U256; - use crate::static_values::BEGINNING_DIFFICULTY; + use super::{dump_u256, load_u256, recalculate_difficulty}; diff --git a/tests/block_test.rs b/tests/block_test.rs index 150ee4f..7fce1fe 100644 --- a/tests/block_test.rs +++ b/tests/block_test.rs @@ -171,7 +171,7 @@ fn dump_parse_derivative_block() { payment_transaction, }; let dumped_block = derivative_block.dump().unwrap(); - let parsed_block = DerivativeBlock::parse(&dumped_block[1..].to_vec()).unwrap(); + let parsed_block = DerivativeBlock::parse(&dumped_block[1..]).unwrap(); assert_eq!( derivative_block.default_info.timestamp, @@ -216,7 +216,7 @@ fn validate_derivative_block() { }; let prev_block = DerivativeBlock { default_info: basic_data, - payment_transaction: payment_transaction, + payment_transaction, }; let payment_transaction = [0; 32]; let basic_data = block::BasicInfo { @@ -229,7 +229,7 @@ fn validate_derivative_block() { }; let derivative_block = DerivativeBlock { default_info: basic_data, - payment_transaction: payment_transaction, + payment_transaction, }; assert!(!derivative_block diff --git a/tests/chain_test.rs b/tests/chain_test.rs index aea8311..e684fba 100644 --- a/tests/chain_test.rs +++ b/tests/chain_test.rs @@ -1,7 +1,6 @@ use blockchaintree::{ block, - chain::{self, Chain, DerivativeChain}, - static_values::{BEGINNING_DIFFICULTY, INCEPTION_TIMESTAMP, ROOT_PUBLIC_ADDRESS}, + chain::{self, Chain}, tools, transaction::{self, Transactionable}, };