Fixed CI errors

This commit is contained in:
SChernykh
2024-02-11 10:52:50 +01:00
parent 0801d607a1
commit 6263c0bbda
8 changed files with 26 additions and 15 deletions

View File

@@ -18,17 +18,23 @@
#include "common.h"
#include "merge_mining_client.h"
#include "merge_mining_client_json_rpc.h"
#ifndef P2POOL_UNIT_TESTS
#include "merge_mining_client_tari.h"
#endif
namespace p2pool {
IMergeMiningClient* IMergeMiningClient::create(p2pool* pool, const std::string& host, const std::string& wallet) noexcept
{
try {
#ifndef P2POOL_UNIT_TESTS
if (host.find(MergeMiningClientTari::TARI_PREFIX) == 0) {
return new MergeMiningClientTari(pool, host, wallet);
}
else {
else
#endif
{
return new MergeMiningClientJSON_RPC(pool, host, wallet);
}
}