Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rex1fernando committed Jan 24, 2024
1 parent 491a273 commit 0a2214a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/fullprover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ json FullProver::prove(std::string input) {
{
std::stringstream ss;
ss << "Time taken for witness generation: " << duration.count() << " milliseconds";
std::cout << "Time taken for witness generation: " << duration.count() << " milliseconds";
std::cout << "Time taken for witness generation: " << duration.count() << " milliseconds" << std::endl;
LOG_INFO(ss.str().data());
}

Expand All @@ -133,7 +133,7 @@ json FullProver::prove(std::string input) {
{
std::stringstream ss;
ss << "Time taken for Groth16 prover: " << duration.count() << " milliseconds";
std::cout << "Time taken for Groth16 prover: " << duration.count() << " milliseconds";
std::cout << "Time taken for Groth16 prover: " << duration.count() << " milliseconds" << std::endl;
LOG_INFO(ss.str().data());
}

Expand Down
1 change: 0 additions & 1 deletion src/fullprover.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ using json = nlohmann::json;
#include "groth16.hpp"
#include "binfile_utils.hpp"
#include "zkey_utils.hpp"
#include <pistache/http_defs.h>
#include <httplib.h>

struct FullProverError {
Expand Down
2 changes: 0 additions & 2 deletions src/main_proofserver.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include <pistache/router.h>
#include <pistache/endpoint.h>
#define CPPHTTPLIB_THREAD_POOL_COUNT 1
#include <httplib.h>
//#include "logger.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/main_prover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <memory>
#include <stdexcept>
#include <nlohmann/json.hpp>
#include <pistache/router.h>
#include <pistache/endpoint.h>

#include <alt_bn128.hpp>
#include "binfile_utils.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/proverapi.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include <pistache/router.h>
#include <pistache/endpoint.h>
#include <httplib.h>
#include "fullprover.hpp"

Expand Down

0 comments on commit 0a2214a

Please sign in to comment.