Skip to content

Commit

Permalink
more fixes and added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Sep 14, 2024
1 parent e8e9f8c commit befcc88
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ mod refund_tests {
.calculate_refunds_amount_for_identity(identity.id())
.expect("expected refunds for identity");

println!("{}", insertion_fee_result.storage_fee);
println!("{}", refund_amount);
// println!("{}", insertion_fee_result.storage_fee);
// println!("{}", refund_amount);

// we should be refunding around 21% after 25 years.
let refunded_percentage = refund_amount * 100 / insertion_fee_result.storage_fee;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ mod test {
let file_path = adjust_path_based_on_current_dir(
"tests/supporting_files/mainnet_protx_list_diffs/1-2128896.json",
);
println!(
"Current directory: {:?}, using {:?}",
std::env::current_dir(),
&file_path
);
// println!(
// "Current directory: {:?}, using {:?}",
// std::env::current_dir(),
// &file_path
// );
// Deserialize the first JSON file
let file = File::open(file_path).expect("expected to open file");
let reader = BufReader::new(file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,6 @@ mod tests {
let salt_2: [u8; 32] = rng.gen();
let salt_3: [u8; 32] = rng.gen();

println!("salt 3 is {}", hex::encode(salt_3));

let mut salted_domain_buffer_1: Vec<u8> = vec![];
salted_domain_buffer_1.extend(salt_1);
salted_domain_buffer_1.extend("quantum.dash".as_bytes());
Expand All @@ -1262,11 +1260,6 @@ mod tests {

let salted_domain_hash_3 = hash_double(salted_domain_buffer_3);

println!(
"salted_domain_buffer_3 is {}",
hex::encode(salted_domain_hash_3)
);

preorder_document_1.set("saltedDomainHash", salted_domain_hash_1.into());
preorder_document_2.set("saltedDomainHash", salted_domain_hash_2.into());
preorder_document_3_on_identity_1.set("saltedDomainHash", salted_domain_hash_3.into());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ impl Drive {
if would_be_unique {
Some(Ok(SimpleConsensusValidationResult::default()))
} else {
println!("properties of previous are {:?}", documents);
Some(Ok(SimpleConsensusValidationResult::new_with_error(
StateError::DuplicateUniqueIndexError(
DuplicateUniqueIndexError::new(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ impl Drive {
};

if should_delete_parent_time_tree {
println!("deleting tree at {}", end_date);
self.batch_delete(
vote_end_date_queries_tree_path_vec().as_slice().into(),
encode_u64(end_date).as_slice(),
Expand Down

0 comments on commit befcc88

Please sign in to comment.