Tari: connect to a node and get unique_id

This commit is contained in:
SChernykh
2024-02-15 17:43:15 +01:00
parent cf165af025
commit dbb21151b0
9 changed files with 281 additions and 166 deletions

View File

@@ -19,7 +19,7 @@
#include "merge_mining_client.h"
#include "merge_mining_client_json_rpc.h"
#ifndef P2POOL_UNIT_TESTS
#if defined(WITH_GRPC) && !defined(P2POOL_UNIT_TESTS)
#include "merge_mining_client_tari.h"
#endif
@@ -28,7 +28,7 @@ namespace p2pool {
IMergeMiningClient* IMergeMiningClient::create(p2pool* pool, const std::string& host, const std::string& wallet) noexcept
{
try {
#ifndef P2POOL_UNIT_TESTS
#if defined(WITH_GRPC) && !defined(P2POOL_UNIT_TESTS)
if (host.find(MergeMiningClientTari::TARI_PREFIX) == 0) {
return new MergeMiningClientTari(pool, host, wallet);
}