diff --git a/src/backend/cpu/CpuWorker.cpp b/src/backend/cpu/CpuWorker.cpp index d2834862c..143cca141 100644 --- a/src/backend/cpu/CpuWorker.cpp +++ b/src/backend/cpu/CpuWorker.cpp @@ -93,7 +93,7 @@ template xmrig::CpuWorker::~CpuWorker() { # ifdef XMRIG_ALGO_RANDOMX - RxVm::Destroy(m_vm); + RxVm::destroy(m_vm); # endif CnCtx::release(m_ctx, N); @@ -118,7 +118,7 @@ void xmrig::CpuWorker::allocateRandomX_VM() } if (!m_vm) { - m_vm = RxVm::Create(dataset, m_memory->scratchpad(), !m_hwAES, m_assembly, m_node); + m_vm = RxVm::create(dataset, m_memory->scratchpad(), !m_hwAES, m_assembly, m_node); } } #endif diff --git a/src/crypto/rx/RxVm.cpp b/src/crypto/rx/RxVm.cpp index 56ee7f6b5..c8a5ca8dc 100644 --- a/src/crypto/rx/RxVm.cpp +++ b/src/crypto/rx/RxVm.cpp @@ -31,7 +31,7 @@ #include "crypto/rx/RxVm.h" -randomx_vm* xmrig::RxVm::Create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node) +randomx_vm* xmrig::RxVm::create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node) { int flags = 0; @@ -59,7 +59,7 @@ randomx_vm* xmrig::RxVm::Create(RxDataset *dataset, uint8_t *scratchpad, bool so } -void xmrig::RxVm::Destroy(randomx_vm* vm) +void xmrig::RxVm::destroy(randomx_vm* vm) { if (vm) { randomx_destroy_vm(vm); diff --git a/src/crypto/rx/RxVm.h b/src/crypto/rx/RxVm.h index 6e5b851a7..6397d726e 100644 --- a/src/crypto/rx/RxVm.h +++ b/src/crypto/rx/RxVm.h @@ -50,8 +50,8 @@ class RxVm public: XMRIG_DISABLE_COPY_MOVE_DEFAULT(RxVm); - static randomx_vm* Create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node); - static void Destroy(randomx_vm* vm); + static randomx_vm* create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node); + static void destroy(randomx_vm* vm); }; diff --git a/src/net/JobResults.cpp b/src/net/JobResults.cpp index c1bcde55a..5c7ef995e 100644 --- a/src/net/JobResults.cpp +++ b/src/net/JobResults.cpp @@ -116,7 +116,7 @@ static void getResults(JobBundle &bundle, std::vector &results, uint3 return; } - auto vm = RxVm::Create(dataset, memory->scratchpad(), !hwAES, Assembly::NONE, 0); + auto vm = RxVm::create(dataset, memory->scratchpad(), !hwAES, Assembly::NONE, 0); for (uint32_t nonce : bundle.nonces) { *bundle.job.nonce() = nonce; @@ -126,7 +126,7 @@ static void getResults(JobBundle &bundle, std::vector &results, uint3 checkHash(bundle, results, nonce, hash, errors); } - RxVm::Destroy(vm); + RxVm::destroy(vm); # endif } else if (algorithm.family() == Algorithm::ARGON2) {