diff --git a/rai/node/openclwork.cpp b/rai/node/openclwork.cpp index 476ff692..5c6454d3 100644 --- a/rai/node/openclwork.cpp +++ b/rai/node/openclwork.cpp @@ -706,7 +706,7 @@ rai::opencl_work::~opencl_work () } } -boost::optional rai::opencl_work::generate_work (rai::work_pool & pool_a, rai::uint256_union const & root_a) +boost::optional rai::opencl_work::generate_work (rai::uint256_union const & root_a) { std::lock_guard lock (mutex); bool error (false); diff --git a/rai/node/openclwork.hpp b/rai/node/openclwork.hpp index a4f1b6de..9555b503 100644 --- a/rai/node/openclwork.hpp +++ b/rai/node/openclwork.hpp @@ -49,7 +49,7 @@ class opencl_work public: opencl_work (bool &, rai::opencl_config const &, rai::opencl_environment &, rai::logging &); ~opencl_work (); - boost::optional generate_work (rai::work_pool &, rai::uint256_union const &); + boost::optional generate_work (rai::uint256_union const &); static std::unique_ptr create (bool, rai::opencl_config const &, rai::logging &); rai::opencl_config const & config; std::mutex mutex; @@ -63,4 +63,4 @@ public: rai::xorshift1024star rand; rai::logging & logging; }; -} \ No newline at end of file +} diff --git a/rai/node/work.cpp b/rai/node/work.cpp index ccb54bea..58923c75 100644 --- a/rai/node/work.cpp +++ b/rai/node/work.cpp @@ -158,7 +158,7 @@ void rai::work_pool::generate (rai::uint256_union const & root_a, std::function boost::optional result; if (opencl != nullptr) { - result = opencl->generate_work (*this, root_a); + result = opencl->generate_work (root_a); } if (!result) {