Disable donate for astrobwt/v2.

This commit is contained in:
XMRig 2022-04-05 15:15:03 +07:00
parent 5bdfafd719
commit 4c171bea1e
No known key found for this signature in database
GPG key ID: 446A53638BE94409
2 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,6 @@
/* XMRig
* Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <support@xmrig.com>
* Copyright (c) 2018-2022 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2022 XMRig <https://github.com/xmrig>, <support@xmrig.com>
*
* 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();

View file

@ -1,6 +1,6 @@
/* XMRig
* Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <support@xmrig.com>
* Copyright (c) 2018-2022 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2022 XMRig <https://github.com/xmrig>, <support@xmrig.com>
*
* 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