Skip to content

Commit

Permalink
Try #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed May 3, 2021
1 parent 2459ea2 commit f4b524d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libiop/tests/bcs/test_bcs_transformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ bcs_transformation_parameters<FieldT, MT_root_hash> get_bcs_parameters(bool alge
std::make_shared<blake2b_hashchain<FieldT, MT_root_hash>>(security_parameter);
bcs_parameters.hash_enum = bcs_hash_type::blake2b_type;
}
set_bcs_parameters_leafhash<FieldT, MT_root_hash>(bcs_parameters);
bcs_parameters.pow_params_.cost_per_hash_ = 1;
bcs_parameters.pow_params_.work_parameter_ = 2;
set_bcs_parameters_leafhash<FieldT, MT_root_hash>(bcs_parameters); // Work per hash. Todo generalize this w/ proper explanations of work amounts
const size_t work_per_hash = (bcs_parameters.hash_enum == 1) ? 1 : 128;
params.pow_params_ = pow_parameters(4, work_per_hash);

return bcs_parameters;
}
Expand Down

0 comments on commit f4b524d

Please sign in to comment.