Skip to content

Commit

Permalink
run in crct gen mode even if table pieces file is not specified, just…
Browse files Browse the repository at this point in the history
… throw warning
  • Loading branch information
CblPOK-git committed Jun 14, 2024
1 parent 4787049 commit d8d0210
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/assigner/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,11 @@ int curve_dependent_main(std::string bytecode_file_name,
return 0;
}

if (gen_mode.has_circuit()) {
if (table_pieces_file_name == "") {
std::cerr << "table_pieces_file_name is not specified, skipping generation\n";
}

if (gen_mode.has_circuit() && table_pieces_file_name != "") {

boost::json::object top_level_json;
top_level_json["provers_amount"] = assigner_instance.assignments.size();
Expand Down Expand Up @@ -1253,11 +1257,14 @@ int main(int argc, char *argv[]) {
if (vm.count("table-pieces")) {
table_pieces_file_name = vm["table-pieces"].as<std::string>();
} else {
if (gen_mode.has_circuit() || gen_mode.has_fast_tbl()) {
if (gen_mode.has_fast_tbl()) {
std::cerr << "Invalid command line argument - table-pieces file name is not specified" << std::endl;
std::cout << options_desc << std::endl;
return 1;
}
if (gen_mode.has_circuit()) {
std::cerr << "warning: table-pieces command line argument is not specified, file will not be generated" << std::endl;
}
}

if (vm.count("elliptic-curve-type")) {
Expand Down

0 comments on commit d8d0210

Please sign in to comment.