Tari: connect to a node and get unique_id
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user