diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-05-03 22:44:47 +0200 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2018-06-04 21:07:11 +0000 |
commit | f2f2f8a77a113834a6fe4ffbac28a1415d60e6ae (patch) | |
tree | 0abc253a0e617d61f5e827707086d62401a959d7 /xmrstak/backend/globalStates.hpp | |
parent | d7ef42215316ebb892042a207fd42fa6bbc13135 (diff) | |
download | xmr-stak-f2f2f8a77a113834a6fe4ffbac28a1415d60e6ae.zip xmr-stak-f2f2f8a77a113834a6fe4ffbac28a1415d60e6ae.tar.gz |
set correct `iPoolId` for miner_work
- initialize miner_work iPoolId in the default constructor with the invalid pool id
- move definition of `pool_data` into an own file
Diffstat (limited to 'xmrstak/backend/globalStates.hpp')
-rw-r--r-- | xmrstak/backend/globalStates.hpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/xmrstak/backend/globalStates.hpp b/xmrstak/backend/globalStates.hpp index fafd232..e1b554f 100644 --- a/xmrstak/backend/globalStates.hpp +++ b/xmrstak/backend/globalStates.hpp @@ -1,26 +1,15 @@ #pragma once -#include "miner_work.hpp" +#include "xmrstak/backend/miner_work.hpp" #include "xmrstak/misc/environment.hpp" #include "xmrstak/misc/console.hpp" +#include "xmrstak/backend/pool_data.hpp" #include <atomic> -constexpr static size_t invalid_pool_id = (-1); - namespace xmrstak { -struct pool_data -{ - uint32_t iSavedNonce; - size_t pool_id; - - pool_data() : iSavedNonce(0), pool_id(invalid_pool_id) - { - } -}; - struct globalStates { static inline globalStates& inst() |