Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Fix prover segfault #13

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix prover segfault
x-mass committed Jul 17, 2024
commit 494ddae241135060a94bb64fa3665454fda24c96
Original file line number Diff line number Diff line change
@@ -122,7 +122,6 @@ namespace nil {
, _is_lookup_enabled(constraint_system.lookup_gates().size() > 0)
, _commitment_scheme(commitment_scheme)
{
std::cout << "Table has " << table_description.rows_amount << " rows." << std::endl;

// Initialize transcript.
transcript(preprocessed_public_data.common_data.vk.constraint_system_with_params_hash);
@@ -236,7 +235,7 @@ namespace nil {
(split_polynomial_size / preprocessed_public_data.common_data.desc.rows_amount + 1):
(split_polynomial_size / preprocessed_public_data.common_data.desc.rows_amount);

if (preprocessed_public_data.common_data.max_quotient_chunks != 0 &&
if (preprocessed_public_data.common_data.max_quotient_chunks != 0 &&
split_polynomial_size > preprocessed_public_data.common_data.max_quotient_chunks) {
split_polynomial_size = preprocessed_public_data.common_data.max_quotient_chunks;
}
@@ -254,6 +253,9 @@ namespace nil {
T_splitted_dfs[k].from_coefficients(T_splitted[k]);
}, ThreadPool::PoolLevel::HIGH);

// DO NOT CHANGE, sizes are different by design
T_splitted_dfs.resize(split_polynomial_size);

return T_splitted_dfs;
}