Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Feb 4, 2025
1 parent 2bfab78 commit 21cce36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python_bindings/fastvdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ PYBIND11_MODULE(chiavdf, m) {
std::string discriminant_copy(discriminant);
std::string x_s_copy(x_s);
std::string proof_blob_copy(proof_blob);
integer B;
{
py::gil_scoped_release release;
uint8_t *proof_blob_ptr = reinterpret_cast<uint8_t *>(proof_blob_copy.data());
int proof_blob_size = proof_blob_copy.size();
integer B = GetBFromProof(integer(discriminant_copy), (const uint8_t *)x_s_copy.data(), proof_blob_ptr, proof_blob_size, num_iterations, recursion);
B = GetBFromProof(integer(discriminant_copy), (const uint8_t *)x_s_copy.data(), proof_blob_ptr, proof_blob_size, num_iterations, recursion);
}
return B.to_string();
});
Expand Down

0 comments on commit 21cce36

Please sign in to comment.