2021-08-22 04:20:59 -06:00
|
|
|
/*
|
|
|
|
* This file is part of the Monero P2Pool <https://github.com/SChernykh/p2pool>
|
2023-01-04 05:07:55 -07:00
|
|
|
* Copyright (c) 2021-2023 SChernykh <https://github.com/SChernykh>
|
2021-08-22 04:20:59 -06:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation, version 3.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "wallet.h"
|
|
|
|
|
|
|
|
namespace p2pool {
|
|
|
|
|
|
|
|
struct Params
|
|
|
|
{
|
|
|
|
Params(int argc, char* argv[]);
|
|
|
|
|
2022-08-31 08:37:33 -06:00
|
|
|
bool valid() const;
|
2021-08-22 04:20:59 -06:00
|
|
|
|
2021-09-08 12:25:39 -06:00
|
|
|
std::string m_host = "127.0.0.1";
|
2021-08-22 04:20:59 -06:00
|
|
|
uint32_t m_rpcPort = 18081;
|
|
|
|
uint32_t m_zmqPort = 18083;
|
|
|
|
bool m_lightMode = false;
|
|
|
|
Wallet m_wallet{ nullptr };
|
2021-09-18 02:03:06 -06:00
|
|
|
std::string m_stratumAddresses;
|
|
|
|
std::string m_p2pAddresses;
|
2021-08-22 04:20:59 -06:00
|
|
|
std::string m_p2pPeerList;
|
|
|
|
std::string m_config;
|
2021-09-01 05:49:58 -06:00
|
|
|
std::string m_apiPath;
|
2021-10-01 17:09:42 -06:00
|
|
|
bool m_localStats = false;
|
2021-10-16 05:45:28 -06:00
|
|
|
bool m_blockCache = true;
|
2022-03-15 09:56:37 -06:00
|
|
|
#ifdef WITH_RANDOMX
|
2021-11-20 03:51:22 -07:00
|
|
|
bool m_disableRandomX = false;
|
2022-03-15 09:56:37 -06:00
|
|
|
#else
|
|
|
|
bool m_disableRandomX = true;
|
|
|
|
#endif
|
2021-12-26 06:59:45 -07:00
|
|
|
uint32_t m_maxOutgoingPeers = 10;
|
2022-09-20 02:39:55 -06:00
|
|
|
uint32_t m_maxIncomingPeers = 450;
|
2022-01-22 15:09:29 -07:00
|
|
|
uint32_t m_minerThreads = 0;
|
2022-02-14 05:57:59 -07:00
|
|
|
bool m_mini = false;
|
2022-05-08 04:30:22 -06:00
|
|
|
bool m_autoDiff = true;
|
2022-06-04 05:16:05 -06:00
|
|
|
std::string m_rpcLogin;
|
2022-08-31 08:37:33 -06:00
|
|
|
std::string m_socks5Proxy;
|
2022-09-04 10:10:14 -06:00
|
|
|
bool m_dns = true;
|
2022-10-28 06:06:26 -06:00
|
|
|
uint32_t m_p2pExternalPort = 0;
|
2023-03-20 02:17:59 -06:00
|
|
|
#ifdef WITH_UPNP
|
2023-03-19 15:54:18 -06:00
|
|
|
bool m_upnp = true;
|
2023-03-20 06:32:17 -06:00
|
|
|
bool m_upnpStratum = false;
|
2023-03-20 02:17:59 -06:00
|
|
|
#else
|
|
|
|
bool m_upnp = false;
|
2023-03-20 06:32:17 -06:00
|
|
|
bool m_upnpStratum = false;
|
2023-03-20 02:17:59 -06:00
|
|
|
#endif
|
2021-08-22 04:20:59 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace p2pool
|