From 4c171bea1ed1769b49ea805e7db07c3aef3bab30 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 5 Apr 2022 15:15:03 +0700 Subject: [PATCH] Disable donate for astrobwt/v2. --- src/net/strategies/DonateStrategy.cpp | 10 ++++++++-- src/net/strategies/DonateStrategy.h | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp index 3d400340..cdaf2258 100644 --- a/src/net/strategies/DonateStrategy.cpp +++ b/src/net/strategies/DonateStrategy.cpp @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2021 SChernykh - * Copyright (c) 2016-2021 XMRig , + * Copyright (c) 2018-2022 SChernykh + * Copyright (c) 2016-2022 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 @@ -106,6 +106,12 @@ int64_t xmrig::DonateStrategy::submit(const JobResult &result) void xmrig::DonateStrategy::connect() { +# ifdef XMRIG_ALGO_ASTROBWT + if (m_algorithm == Algorithm::ASTROBWT_DERO_2) { + return; + } +# endif + m_proxy = createProxy(); if (m_proxy) { m_proxy->connect(); diff --git a/src/net/strategies/DonateStrategy.h b/src/net/strategies/DonateStrategy.h index fd3038ba..56a0580e 100644 --- a/src/net/strategies/DonateStrategy.h +++ b/src/net/strategies/DonateStrategy.h @@ -1,6 +1,6 @@ /* XMRig - * Copyright (c) 2018-2021 SChernykh - * Copyright (c) 2016-2021 XMRig , + * Copyright (c) 2018-2022 SChernykh + * Copyright (c) 2016-2022 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