diff --git a/CMakeLists.txt b/CMakeLists.txt index 74c546d7e..383a8e6e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,6 @@ set(HEADERS_CRYPTO src/crypto/cn/c_groestl.h src/crypto/cn/c_jh.h src/crypto/cn/c_skein.h - src/crypto/cn/CnAlgo.h src/crypto/cn/CnCtx.h src/crypto/cn/CnHash.h src/crypto/cn/CryptoNight_monero.h @@ -77,10 +76,7 @@ set(HEADERS_CRYPTO src/crypto/cn/hash.h src/crypto/cn/skein_port.h src/crypto/cn/soft_aes.h - src/crypto/common/Algorithm.h - src/crypto/common/Coin.h src/crypto/common/HugePagesInfo.h - src/crypto/common/keccak.h src/crypto/common/MemoryPool.h src/crypto/common/Nonce.h src/crypto/common/portable/mm_malloc.h @@ -116,10 +112,7 @@ set(SOURCES_CRYPTO src/crypto/cn/c_skein.c src/crypto/cn/CnCtx.cpp src/crypto/cn/CnHash.cpp - src/crypto/common/Algorithm.cpp - src/crypto/common/Coin.cpp src/crypto/common/HugePagesInfo.cpp - src/crypto/common/keccak.cpp src/crypto/common/MemoryPool.cpp src/crypto/common/Nonce.cpp src/crypto/common/VirtualMemory.cpp diff --git a/src/backend/common/Threads.cpp b/src/backend/common/Threads.cpp index f85e18f3d..a72f8026d 100644 --- a/src/backend/common/Threads.cpp +++ b/src/backend/common/Threads.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ #include "backend/common/Threads.h" #include "backend/cpu/CpuThreads.h" -#include "crypto/cn/CnAlgo.h" +#include "base/crypto/CnAlgo.h" #include "rapidjson/document.h" diff --git a/src/backend/common/Threads.h b/src/backend/common/Threads.h index 59b04fc9e..a21fe13b5 100644 --- a/src/backend/common/Threads.h +++ b/src/backend/common/Threads.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,8 +30,8 @@ #include +#include "base/crypto/Algorithm.h" #include "base/tools/String.h" -#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/backend/cpu/CpuLaunchData.h b/src/backend/cpu/CpuLaunchData.h index 0ba8ad7f9..1cadc6dee 100644 --- a/src/backend/cpu/CpuLaunchData.h +++ b/src/backend/cpu/CpuLaunchData.h @@ -27,8 +27,8 @@ #define XMRIG_CPULAUNCHDATA_H +#include "base/crypto/Algorithm.h" #include "crypto/cn/CnHash.h" -#include "crypto/common/Algorithm.h" #include "crypto/common/Assembly.h" #include "crypto/common/Nonce.h" diff --git a/src/backend/cpu/interfaces/ICpuInfo.h b/src/backend/cpu/interfaces/ICpuInfo.h index 4aad69447..f5a35b2d0 100644 --- a/src/backend/cpu/interfaces/ICpuInfo.h +++ b/src/backend/cpu/interfaces/ICpuInfo.h @@ -27,8 +27,8 @@ #include "backend/cpu/CpuThreads.h" +#include "base/crypto/Algorithm.h" #include "crypto/common/Assembly.h" -#include "crypto/common/Algorithm.h" namespace xmrig { diff --git a/src/backend/cuda/CudaLaunchData.h b/src/backend/cuda/CudaLaunchData.h index 33173ffb7..8bf2dbeba 100644 --- a/src/backend/cuda/CudaLaunchData.h +++ b/src/backend/cuda/CudaLaunchData.h @@ -28,7 +28,7 @@ #include "backend/cuda/CudaThread.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" #include "crypto/common/Nonce.h" diff --git a/src/backend/cuda/CudaThread.cpp b/src/backend/cuda/CudaThread.cpp index d98989ab6..eb65dc2c4 100644 --- a/src/backend/cuda/CudaThread.cpp +++ b/src/backend/cuda/CudaThread.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/cuda/CudaThread.h b/src/backend/cuda/CudaThread.h index 8943ac228..3588e846d 100644 --- a/src/backend/cuda/CudaThread.h +++ b/src/backend/cuda/CudaThread.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +29,6 @@ using nvid_ctx = struct nvid_ctx; -#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/backend/cuda/wrappers/CudaDevice.cpp b/src/backend/cuda/wrappers/CudaDevice.cpp index 93234d536..daa160745 100644 --- a/src/backend/cuda/wrappers/CudaDevice.cpp +++ b/src/backend/cuda/wrappers/CudaDevice.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,8 +26,8 @@ #include "backend/cuda/wrappers/CudaDevice.h" #include "backend/cuda/CudaThreads.h" #include "backend/cuda/wrappers/CudaLib.h" +#include "base/crypto/Algorithm.h" #include "base/io/log/Log.h" -#include "crypto/common/Algorithm.h" #include "rapidjson/document.h" #ifdef XMRIG_FEATURE_NVML diff --git a/src/backend/cuda/wrappers/CudaLib.h b/src/backend/cuda/wrappers/CudaLib.h index 99824f809..b48e720cd 100644 --- a/src/backend/cuda/wrappers/CudaLib.h +++ b/src/backend/cuda/wrappers/CudaLib.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,7 +31,6 @@ using nvid_ctx = struct nvid_ctx; #include "backend/cuda/wrappers/CudaDevice.h" #include "base/tools/String.h" -#include "crypto/common/Algorithm.h" #include diff --git a/src/backend/opencl/OclCache.cpp b/src/backend/opencl/OclCache.cpp index 7e5504c08..e93019c88 100644 --- a/src/backend/opencl/OclCache.cpp +++ b/src/backend/opencl/OclCache.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,15 +29,15 @@ #include +#include "backend/opencl/OclCache.h" #include "3rdparty/base32/base32.h" #include "backend/common/Tags.h" #include "backend/opencl/interfaces/IOclRunner.h" -#include "backend/opencl/OclCache.h" #include "backend/opencl/OclLaunchData.h" #include "backend/opencl/wrappers/OclLib.h" +#include "base/crypto/keccak.h" #include "base/io/log/Log.h" #include "base/tools/Chrono.h" -#include "crypto/common/keccak.h" namespace xmrig { diff --git a/src/backend/opencl/OclCache.h b/src/backend/opencl/OclCache.h index e3eea5c3f..5f17bfca9 100644 --- a/src/backend/opencl/OclCache.h +++ b/src/backend/opencl/OclCache.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/opencl/OclLaunchData.cpp b/src/backend/opencl/OclLaunchData.cpp index 2af6d1019..48c380f45 100644 --- a/src/backend/opencl/OclLaunchData.cpp +++ b/src/backend/opencl/OclLaunchData.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/opencl/OclLaunchData.h b/src/backend/opencl/OclLaunchData.h index 644023be8..73716b840 100644 --- a/src/backend/opencl/OclLaunchData.h +++ b/src/backend/opencl/OclLaunchData.h @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ #include "backend/opencl/runners/tools/OclSharedData.h" #include "backend/opencl/wrappers/OclDevice.h" #include "backend/opencl/wrappers/OclPlatform.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" #include "crypto/common/Nonce.h" diff --git a/src/backend/opencl/OclThread.cpp b/src/backend/opencl/OclThread.cpp index 8ca4574f7..e94eb876b 100644 --- a/src/backend/opencl/OclThread.cpp +++ b/src/backend/opencl/OclThread.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,6 @@ #include "backend/opencl/OclThread.h" - #include "base/io/json/Json.h" #include "rapidjson/document.h" diff --git a/src/backend/opencl/OclThread.h b/src/backend/opencl/OclThread.h index 1882abf7a..4febb7a03 100644 --- a/src/backend/opencl/OclThread.h +++ b/src/backend/opencl/OclThread.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,6 @@ #define XMRIG_OCLTHREAD_H -#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/backend/opencl/cl/OclSource.cpp b/src/backend/opencl/cl/OclSource.cpp index 5f569d496..b30e8a8f4 100644 --- a/src/backend/opencl/cl/OclSource.cpp +++ b/src/backend/opencl/cl/OclSource.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,9 +24,8 @@ #include "backend/opencl/cl/OclSource.h" - #include "backend/opencl/cl/cn/cryptonight_cl.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" #ifdef XMRIG_ALGO_CN_GPU diff --git a/src/backend/opencl/cl/OclSource.h b/src/backend/opencl/cl/OclSource.h index 40b70810a..6f41d1eb5 100644 --- a/src/backend/opencl/cl/OclSource.h +++ b/src/backend/opencl/cl/OclSource.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/opencl/generators/ocl_generic_cn_generator.cpp b/src/backend/opencl/generators/ocl_generic_cn_generator.cpp index 5fb91ebfa..90e80e6fd 100644 --- a/src/backend/opencl/generators/ocl_generic_cn_generator.cpp +++ b/src/backend/opencl/generators/ocl_generic_cn_generator.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,8 +26,8 @@ #include "backend/opencl/OclThreads.h" #include "backend/opencl/wrappers/OclDevice.h" -#include "crypto/cn/CnAlgo.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" +#include "base/crypto/CnAlgo.h" #include diff --git a/src/backend/opencl/generators/ocl_generic_cn_gpu_generator.cpp b/src/backend/opencl/generators/ocl_generic_cn_gpu_generator.cpp index 338a7a78c..9a6a8952c 100644 --- a/src/backend/opencl/generators/ocl_generic_cn_gpu_generator.cpp +++ b/src/backend/opencl/generators/ocl_generic_cn_gpu_generator.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ #include "backend/opencl/OclThreads.h" #include "backend/opencl/wrappers/OclDevice.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" #include diff --git a/src/backend/opencl/generators/ocl_generic_rx_generator.cpp b/src/backend/opencl/generators/ocl_generic_rx_generator.cpp index 27124acef..49a73f407 100644 --- a/src/backend/opencl/generators/ocl_generic_rx_generator.cpp +++ b/src/backend/opencl/generators/ocl_generic_rx_generator.cpp @@ -26,7 +26,7 @@ #include "backend/opencl/OclThreads.h" #include "backend/opencl/wrappers/OclDevice.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" #include "crypto/randomx/randomx.h" #include "crypto/rx/RxAlgo.h" diff --git a/src/backend/opencl/generators/ocl_vega_cn_generator.cpp b/src/backend/opencl/generators/ocl_vega_cn_generator.cpp index dbaba1c53..0e14dad90 100644 --- a/src/backend/opencl/generators/ocl_vega_cn_generator.cpp +++ b/src/backend/opencl/generators/ocl_vega_cn_generator.cpp @@ -26,8 +26,8 @@ #include "backend/opencl/OclThreads.h" #include "backend/opencl/wrappers/OclDevice.h" -#include "crypto/cn/CnAlgo.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" +#include "base/crypto/CnAlgo.h" #include diff --git a/src/backend/opencl/kernels/rx/RxRunKernel.cpp b/src/backend/opencl/kernels/rx/RxRunKernel.cpp index ff2a3299c..a88068d77 100644 --- a/src/backend/opencl/kernels/rx/RxRunKernel.cpp +++ b/src/backend/opencl/kernels/rx/RxRunKernel.cpp @@ -25,7 +25,7 @@ #include "backend/opencl/kernels/rx/RxRunKernel.h" #include "backend/opencl/wrappers/OclLib.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" #include "crypto/randomx/randomx.h" #include "crypto/rx/RxAlgo.h" diff --git a/src/backend/opencl/runners/OclBaseRunner.cpp b/src/backend/opencl/runners/OclBaseRunner.cpp index 5c498dbd1..9e2a48a9f 100644 --- a/src/backend/opencl/runners/OclBaseRunner.cpp +++ b/src/backend/opencl/runners/OclBaseRunner.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/opencl/runners/OclBaseRunner.h b/src/backend/opencl/runners/OclBaseRunner.h index 6abbb2b72..68a20f251 100644 --- a/src/backend/opencl/runners/OclBaseRunner.h +++ b/src/backend/opencl/runners/OclBaseRunner.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ #include "3rdparty/cl.h" #include "backend/opencl/interfaces/IOclRunner.h" -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" namespace xmrig { diff --git a/src/backend/opencl/runners/OclCnRunner.cpp b/src/backend/opencl/runners/OclCnRunner.cpp index a1f4d5cb2..67cc4027b 100644 --- a/src/backend/opencl/runners/OclCnRunner.cpp +++ b/src/backend/opencl/runners/OclCnRunner.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,6 @@ #include "backend/opencl/runners/OclCnRunner.h" - #include "backend/opencl/kernels/Cn0Kernel.h" #include "backend/opencl/kernels/Cn1Kernel.h" #include "backend/opencl/kernels/Cn2Kernel.h" @@ -32,9 +31,9 @@ #include "backend/opencl/OclLaunchData.h" #include "backend/opencl/runners/tools/OclCnR.h" #include "backend/opencl/wrappers/OclLib.h" +#include "base/crypto/CnAlgo.h" #include "base/io/log/Log.h" #include "base/net/stratum/Job.h" -#include "crypto/cn/CnAlgo.h" xmrig::OclCnRunner::OclCnRunner(size_t index, const OclLaunchData &data) : OclBaseRunner(index, data) diff --git a/src/backend/opencl/runners/OclCnRunner.h b/src/backend/opencl/runners/OclCnRunner.h index bd20019fc..bae581cea 100644 --- a/src/backend/opencl/runners/OclCnRunner.h +++ b/src/backend/opencl/runners/OclCnRunner.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/opencl/runners/OclRyoRunner.cpp b/src/backend/opencl/runners/OclRyoRunner.cpp index 0907903e5..8d494a261 100644 --- a/src/backend/opencl/runners/OclRyoRunner.cpp +++ b/src/backend/opencl/runners/OclRyoRunner.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,6 @@ #include "backend/opencl/runners/OclRyoRunner.h" - #include "backend/opencl/kernels/Cn00RyoKernel.h" #include "backend/opencl/kernels/Cn0Kernel.h" #include "backend/opencl/kernels/Cn1RyoKernel.h" @@ -32,9 +31,9 @@ #include "backend/opencl/kernels/CnBranchKernel.h" #include "backend/opencl/OclLaunchData.h" #include "backend/opencl/wrappers/OclLib.h" +#include "base/crypto/CnAlgo.h" #include "base/io/log/Log.h" #include "base/net/stratum/Job.h" -#include "crypto/cn/CnAlgo.h" xmrig::OclRyoRunner::OclRyoRunner(size_t index, const OclLaunchData &data) : OclBaseRunner(index, data) diff --git a/src/backend/opencl/runners/OclRyoRunner.h b/src/backend/opencl/runners/OclRyoRunner.h index fd9f41c31..4cf6245f9 100644 --- a/src/backend/opencl/runners/OclRyoRunner.h +++ b/src/backend/opencl/runners/OclRyoRunner.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/backend/opencl/wrappers/OclDevice.cpp b/src/backend/opencl/wrappers/OclDevice.cpp index 766e70e59..bd51d0f3f 100644 --- a/src/backend/opencl/wrappers/OclDevice.cpp +++ b/src/backend/opencl/wrappers/OclDevice.cpp @@ -28,8 +28,6 @@ #include "backend/opencl/OclThreads.h" #include "backend/opencl/wrappers/OclLib.h" #include "base/io/log/Log.h" -#include "crypto/cn/CnAlgo.h" -#include "crypto/common/Algorithm.h" #include "rapidjson/document.h" #ifdef XMRIG_FEATURE_ADL diff --git a/src/base/api/Api.cpp b/src/base/api/Api.cpp index dfd785657..535875fb2 100644 --- a/src/base/api/Api.cpp +++ b/src/base/api/Api.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #include "3rdparty/http-parser/http_parser.h" #include "base/api/interfaces/IApiListener.h" #include "base/api/requests/HttpApiRequest.h" +#include "base/crypto/keccak.h" #include "base/io/json/Json.h" #include "base/kernel/Base.h" #include "base/kernel/Env.h" @@ -37,7 +38,6 @@ #include "base/tools/Chrono.h" #include "core/config/Config.h" #include "core/Controller.h" -#include "crypto/common/keccak.h" #include "version.h" diff --git a/src/base/base.cmake b/src/base/base.cmake index 871b045d4..f2a143818 100644 --- a/src/base/base.cmake +++ b/src/base/base.cmake @@ -1,5 +1,9 @@ set(HEADERS_BASE src/base/api/interfaces/IApiListener.h + src/base/crypto/Algorithm.h + src/base/crypto/CnAlgo.h + src/base/crypto/Coin.h + src/base/crypto/keccak.h src/base/io/Console.h src/base/io/json/Json.h src/base/io/json/JsonChain.h @@ -61,6 +65,9 @@ set(HEADERS_BASE ) set(SOURCES_BASE + src/base/crypto/Algorithm.cpp + src/base/crypto/Coin.cpp + src/base/crypto/keccak.cpp src/base/io/Console.cpp src/base/io/json/Json.cpp src/base/io/json/JsonChain.cpp diff --git a/src/crypto/common/Algorithm.cpp b/src/base/crypto/Algorithm.cpp similarity index 99% rename from src/crypto/common/Algorithm.cpp rename to src/base/crypto/Algorithm.cpp index ef438ab91..529719668 100644 --- a/src/crypto/common/Algorithm.cpp +++ b/src/base/crypto/Algorithm.cpp @@ -24,8 +24,8 @@ */ -#include "crypto/common/Algorithm.h" -#include "crypto/cn/CnAlgo.h" +#include "base/crypto/Algorithm.h" +#include "base/crypto/CnAlgo.h" #include "rapidjson/document.h" diff --git a/src/crypto/common/Algorithm.h b/src/base/crypto/Algorithm.h similarity index 100% rename from src/crypto/common/Algorithm.h rename to src/base/crypto/Algorithm.h diff --git a/src/crypto/cn/CnAlgo.h b/src/base/crypto/CnAlgo.h similarity index 98% rename from src/crypto/cn/CnAlgo.h rename to src/base/crypto/CnAlgo.h index 0b115c34e..155618067 100644 --- a/src/crypto/cn/CnAlgo.h +++ b/src/base/crypto/CnAlgo.h @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ #include -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" namespace xmrig diff --git a/src/crypto/common/Coin.cpp b/src/base/crypto/Coin.cpp similarity index 98% rename from src/crypto/common/Coin.cpp rename to src/base/crypto/Coin.cpp index b17b340e7..8b32e4fc2 100644 --- a/src/crypto/common/Coin.cpp +++ b/src/base/crypto/Coin.cpp @@ -24,7 +24,7 @@ */ -#include "crypto/common/Coin.h" +#include "base/crypto/Coin.h" #include "rapidjson/document.h" diff --git a/src/crypto/common/Coin.h b/src/base/crypto/Coin.h similarity index 98% rename from src/crypto/common/Coin.h rename to src/base/crypto/Coin.h index 9e57a8e95..3197c46dc 100644 --- a/src/crypto/common/Coin.h +++ b/src/base/crypto/Coin.h @@ -27,7 +27,7 @@ #define XMRIG_COIN_H -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/crypto/common/keccak.cpp b/src/base/crypto/keccak.cpp similarity index 97% rename from src/crypto/common/keccak.cpp rename to src/base/crypto/keccak.cpp index 132ae0a86..f7940dfbc 100644 --- a/src/crypto/common/keccak.cpp +++ b/src/base/crypto/keccak.cpp @@ -6,7 +6,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2016-2018 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,11 +24,10 @@ */ -#include #include -#include "crypto/common/keccak.h" +#include "base/crypto/keccak.h" #define HASH_DATA_AREA 136 diff --git a/src/crypto/common/keccak.h b/src/base/crypto/keccak.h similarity index 91% rename from src/crypto/common/keccak.h rename to src/base/crypto/keccak.h index 6121044aa..2b039c909 100644 --- a/src/crypto/common/keccak.h +++ b/src/base/crypto/keccak.h @@ -6,7 +6,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2016-2018 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,8 +27,8 @@ #ifndef XMRIG_KECCAK_H #define XMRIG_KECCAK_H -#include -#include +#include +#include namespace xmrig { diff --git a/src/base/kernel/config/BaseTransform.h b/src/base/kernel/config/BaseTransform.h index 16ad843fe..9550328ae 100644 --- a/src/base/kernel/config/BaseTransform.h +++ b/src/base/kernel/config/BaseTransform.h @@ -26,8 +26,8 @@ #define XMRIG_BASETRANSFORM_H +#include "base/crypto/Coin.h" #include "base/kernel/interfaces/IConfigTransform.h" -#include "crypto/common/Coin.h" #include "rapidjson/document.h" diff --git a/src/base/kernel/interfaces/IConfig.h b/src/base/kernel/interfaces/IConfig.h index af1c3d169..93025fc9f 100644 --- a/src/base/kernel/interfaces/IConfig.h +++ b/src/base/kernel/interfaces/IConfig.h @@ -26,7 +26,6 @@ #define XMRIG_ICONFIG_H -#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/base/kernel/interfaces/IConfigTransform.h b/src/base/kernel/interfaces/IConfigTransform.h index 8afe82217..571d3e5a7 100644 --- a/src/base/kernel/interfaces/IConfigTransform.h +++ b/src/base/kernel/interfaces/IConfigTransform.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,6 @@ #define XMRIG_ICONFIGTRANSFORM_H -#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/base/net/stratum/Client.h b/src/base/net/stratum/Client.h index e26eaa7b7..ead8039c0 100644 --- a/src/base/net/stratum/Client.h +++ b/src/base/net/stratum/Client.h @@ -42,7 +42,6 @@ #include "base/net/tools/RecvBuf.h" #include "base/net/tools/Storage.h" #include "base/tools/Object.h" -#include "crypto/common/Algorithm.h" using BIO = struct bio_st; diff --git a/src/base/net/stratum/Job.h b/src/base/net/stratum/Job.h index ed369a163..a4ecd3e10 100644 --- a/src/base/net/stratum/Job.h +++ b/src/base/net/stratum/Job.h @@ -6,9 +6,9 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh * Copyright 2019 Howard Chu - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,9 +32,9 @@ #include +#include "base/crypto/Algorithm.h" #include "base/tools/Buffer.h" #include "base/tools/String.h" -#include "crypto/common/Algorithm.h" namespace xmrig { diff --git a/src/base/net/stratum/NetworkState.h b/src/base/net/stratum/NetworkState.h index 479b184cd..fef3ad446 100644 --- a/src/base/net/stratum/NetworkState.h +++ b/src/base/net/stratum/NetworkState.h @@ -26,9 +26,9 @@ #define XMRIG_NETWORKSTATE_H +#include "base/crypto/Algorithm.h" #include "base/net/stratum/strategies/StrategyProxy.h" #include "base/tools/String.h" -#include "crypto/common/Algorithm.h" #include diff --git a/src/base/net/stratum/Pool.h b/src/base/net/stratum/Pool.h index 352387717..02855200c 100644 --- a/src/base/net/stratum/Pool.h +++ b/src/base/net/stratum/Pool.h @@ -31,8 +31,8 @@ #include +#include "base/crypto/Coin.h" #include "base/net/stratum/ProxyUrl.h" -#include "crypto/common/Coin.h" #include "rapidjson/fwd.h" diff --git a/src/core/Miner.h b/src/core/Miner.h index 96ac6a167..b529d969c 100644 --- a/src/core/Miner.h +++ b/src/core/Miner.h @@ -31,10 +31,10 @@ #include "backend/common/interfaces/IRxListener.h" #include "base/api/interfaces/IApiListener.h" +#include "base/crypto/Algorithm.h" #include "base/kernel/interfaces/IBaseListener.h" #include "base/kernel/interfaces/ITimerListener.h" #include "base/tools/Object.h" -#include "crypto/common/Algorithm.h" namespace xmrig { diff --git a/src/crypto/argon2/Hash.h b/src/crypto/argon2/Hash.h index b337f1934..194bcb584 100644 --- a/src/crypto/argon2/Hash.h +++ b/src/crypto/argon2/Hash.h @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,8 +27,8 @@ #include "3rdparty/argon2.h" +#include "base/crypto/Algorithm.h" #include "crypto/cn/CryptoNight.h" -#include "crypto/common/Algorithm.h" namespace xmrig { namespace argon2 { diff --git a/src/crypto/astrobwt/AstroBWT.h b/src/crypto/astrobwt/AstroBWT.h index 7a3734708..1419641eb 100644 --- a/src/crypto/astrobwt/AstroBWT.h +++ b/src/crypto/astrobwt/AstroBWT.h @@ -27,7 +27,8 @@ */ -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" + struct cryptonight_ctx; diff --git a/src/crypto/astrobwt/sha3.cpp b/src/crypto/astrobwt/sha3.cpp index bc7a8dddb..db1b0554b 100644 --- a/src/crypto/astrobwt/sha3.cpp +++ b/src/crypto/astrobwt/sha3.cpp @@ -16,12 +16,12 @@ * Aug 2015. Andrey Jivsov. crypto@brainhub.org * ---------------------------------------------------------------------- */ -#include -#include -#include +#include +#include +#include #include "sha3.h" -#include "crypto/common/keccak.h" +#include "base/crypto/keccak.h" #define SHA3_ASSERT( x ) #if defined(_MSC_VER) diff --git a/src/crypto/cn/CnCtx.cpp b/src/crypto/cn/CnCtx.cpp index 5d41bca0d..ee151fb30 100644 --- a/src/crypto/cn/CnCtx.cpp +++ b/src/crypto/cn/CnCtx.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,8 +27,8 @@ #include "crypto/cn/CnCtx.h" +#include "base/crypto/Algorithm.h" #include "crypto/cn/CryptoNight.h" -#include "crypto/common/Algorithm.h" #include "crypto/common/portable/mm_malloc.h" #include "crypto/common/VirtualMemory.h" diff --git a/src/crypto/cn/CnCtx.h b/src/crypto/cn/CnCtx.h index 7b0adbec2..7939bf4e9 100644 --- a/src/crypto/cn/CnCtx.h +++ b/src/crypto/cn/CnCtx.h @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,8 +27,8 @@ #define XMRIG_CN_CTX_H -#include -#include +#include +#include struct cryptonight_ctx; diff --git a/src/crypto/cn/CnHash.cpp b/src/crypto/cn/CnHash.cpp index 309dbe3ec..846fb626f 100644 --- a/src/crypto/cn/CnHash.cpp +++ b/src/crypto/cn/CnHash.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/crypto/cn/CnHash.h b/src/crypto/cn/CnHash.h index 92f4df942..f0b5a7110 100644 --- a/src/crypto/cn/CnHash.h +++ b/src/crypto/cn/CnHash.h @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ #include -#include "crypto/cn/CnAlgo.h" +#include "base/crypto/CnAlgo.h" #include "crypto/common/Assembly.h" diff --git a/src/crypto/cn/CryptoNight_arm.h b/src/crypto/cn/CryptoNight_arm.h index 022666349..f8ddbd543 100644 --- a/src/crypto/cn/CryptoNight_arm.h +++ b/src/crypto/cn/CryptoNight_arm.h @@ -7,8 +7,8 @@ * Copyright 2016 Imran Yusuff * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,11 +28,11 @@ #define XMRIG_CRYPTONIGHT_ARM_H -#include "crypto/cn/CnAlgo.h" +#include "base/crypto/CnAlgo.h" +#include "base/crypto/keccak.h" #include "crypto/cn/CryptoNight_monero.h" #include "crypto/cn/CryptoNight.h" #include "crypto/cn/soft_aes.h" -#include "crypto/common/keccak.h" #include "crypto/common/portable/mm_malloc.h" diff --git a/src/crypto/cn/CryptoNight_x86.h b/src/crypto/cn/CryptoNight_x86.h index b63c32922..d71af0134 100644 --- a/src/crypto/cn/CryptoNight_x86.h +++ b/src/crypto/cn/CryptoNight_x86.h @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,11 +36,11 @@ #include "backend/cpu/Cpu.h" -#include "crypto/cn/CnAlgo.h" +#include "base/crypto/CnAlgo.h" +#include "base/crypto/keccak.h" #include "crypto/cn/CryptoNight_monero.h" #include "crypto/cn/CryptoNight.h" #include "crypto/cn/soft_aes.h" -#include "crypto/common/keccak.h" extern "C" diff --git a/src/crypto/cn/gpu/cn_gpu_avx.cpp b/src/crypto/cn/gpu/cn_gpu_avx.cpp index 38da97149..d3dc7b819 100644 --- a/src/crypto/cn/gpu/cn_gpu_avx.cpp +++ b/src/crypto/cn/gpu/cn_gpu_avx.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ */ -#include "crypto/cn/CnAlgo.h" +#include "base/crypto/CnAlgo.h" #ifdef __GNUC__ diff --git a/src/crypto/cn/gpu/cn_gpu_ssse3.cpp b/src/crypto/cn/gpu/cn_gpu_ssse3.cpp index 7cca096ef..7e0ef5b79 100644 --- a/src/crypto/cn/gpu/cn_gpu_ssse3.cpp +++ b/src/crypto/cn/gpu/cn_gpu_ssse3.cpp @@ -5,8 +5,8 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2019 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ */ -#include "crypto/cn/CnAlgo.h" +#include "base/crypto/CnAlgo.h" #ifdef __GNUC__ diff --git a/src/crypto/cn/r/variant4_random_math.h b/src/crypto/cn/r/variant4_random_math.h index 732900612..f8dfb274d 100644 --- a/src/crypto/cn/r/variant4_random_math.h +++ b/src/crypto/cn/r/variant4_random_math.h @@ -2,10 +2,10 @@ #define VARIANT4_RANDOM_MATH_H -#include +#include -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" extern "C" diff --git a/src/crypto/rx/RxAlgo.h b/src/crypto/rx/RxAlgo.h index a939c27f5..81c4687c1 100644 --- a/src/crypto/rx/RxAlgo.h +++ b/src/crypto/rx/RxAlgo.h @@ -7,8 +7,8 @@ * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett * Copyright 2018-2019 tevador - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,7 +32,7 @@ #include -#include "crypto/common/Algorithm.h" +#include "base/crypto/Algorithm.h" struct RandomX_ConfigurationBase; diff --git a/src/crypto/rx/RxDataset.cpp b/src/crypto/rx/RxDataset.cpp index ba1721af7..e0e9fccff 100644 --- a/src/crypto/rx/RxDataset.cpp +++ b/src/crypto/rx/RxDataset.cpp @@ -7,8 +7,8 @@ * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett * Copyright 2018-2019 tevador - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/crypto/rx/RxDataset.h b/src/crypto/rx/RxDataset.h index e46a93c6f..34840fc42 100644 --- a/src/crypto/rx/RxDataset.h +++ b/src/crypto/rx/RxDataset.h @@ -7,8 +7,8 @@ * Copyright 2017-2019 XMR-Stak , * Copyright 2018 Lee Clagett * Copyright 2018-2019 tevador - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,8 +28,8 @@ #define XMRIG_RX_DATASET_H +#include "base/crypto/Algorithm.h" #include "base/tools/Object.h" -#include "crypto/common/Algorithm.h" #include "crypto/common/HugePagesInfo.h" #include "crypto/randomx/configuration.h" #include "crypto/randomx/randomx.h" diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp index 4559334bc..ace9cfa3f 100644 --- a/src/net/strategies/DonateStrategy.cpp +++ b/src/net/strategies/DonateStrategy.cpp @@ -28,6 +28,8 @@ #include +#include "net/strategies/DonateStrategy.h" +#include "base/crypto/keccak.h" #include "base/kernel/Platform.h" #include "base/net/stratum/Client.h" #include "base/net/stratum/Job.h" @@ -38,9 +40,7 @@ #include "core/config/Config.h" #include "core/Controller.h" #include "core/Miner.h" -#include "crypto/common/keccak.h" #include "net/Network.h" -#include "net/strategies/DonateStrategy.h" #include "rapidjson/document.h"