RandomX fixes

- Fixed possible infinite loop when updating RandomX dataset
- Fixed used memory display
- Allocate dataset and VM for RandomX only when it's actually used
This commit is contained in:
SChernykh 2019-06-18 19:53:11 +02:00
parent 50ace41766
commit e8ac01d289
4 changed files with 34 additions and 10 deletions

View file

@ -91,7 +91,8 @@ private:
started(0),
threads(0),
ways(0),
algo(xmrig::CRYPTONIGHT)
algo(xmrig::CRYPTONIGHT),
variant(xmrig::VARIANT_AUTO)
{}
size_t hugePages;
@ -100,6 +101,7 @@ private:
size_t threads;
size_t ways;
xmrig::Algo algo;
xmrig::Variant variant;
};
static bool m_active;