Skip to content

Commit

Permalink
update pybind. stress test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Feb 9, 2025
1 parent 386b3ae commit ed340e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if(BUILD_PYTHON)
FetchContent_Declare(
pybind11-src
GIT_REPOSITORY https://github.com/pybind/pybind11.git
GIT_TAG v2.11.1
GIT_TAG v2.13.6
)
FetchContent_MakeAvailable(pybind11-src)

Expand Down
6 changes: 4 additions & 2 deletions src/stress_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ std::vector<uint8_t> HexToBytes(const char *hex_proof) {

void doit(int thread)
{
std::ifstream infile("/Users/bill/downloads/newvdfs.txt");
std::ifstream infile("vdf.txt");

std::string challenge;
std::string discriminant_size;
Expand All @@ -30,9 +30,11 @@ void doit(int thread)

int cnt=0;

while(cnt<20000)
while(true)
{
std::getline(infile, challenge);
if (infile.eof())
break;
std::getline(infile, discriminant_size);
std::getline(infile, input_el);
std::getline(infile, output);
Expand Down

0 comments on commit ed340e9

Please # to comment.