forked from lthn/blockchain
core tests fixes for TOR
This commit is contained in:
parent
6033828209
commit
2f0b5a323f
3 changed files with 7 additions and 7 deletions
|
|
@ -130,6 +130,10 @@ else()
|
|||
ENABLE_SHARED_PCH(wallet WALLET)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_TOR)
|
||||
target_link_libraries(wallet tor-connect)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -158,7 +162,7 @@ target_link_libraries(currency_core lmdb mdbx)
|
|||
|
||||
add_executable(daemon ${DAEMON} ${P2P} ${CURRENCY_PROTOCOL})
|
||||
add_dependencies(daemon version)
|
||||
target_link_libraries(daemon rpc stratum currency_core crypto common libminiupnpc-static zlibstatic ethash ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
||||
target_link_libraries(daemon rpc stratum currency_core crypto common libminiupnpc-static zlibstatic ethash ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
||||
ENABLE_SHARED_PCH(daemon DAEMON)
|
||||
ENABLE_SHARED_PCH_EXECUTABLE(daemon)
|
||||
|
||||
|
|
@ -171,9 +175,6 @@ ENABLE_SHARED_PCH_EXECUTABLE(connectivity_tool)
|
|||
add_executable(simplewallet ${SIMPLEWALLET})
|
||||
add_dependencies(simplewallet version)
|
||||
target_link_libraries(simplewallet wallet rpc currency_core crypto common zlibstatic ethash ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
||||
if(NOT DISABLE_TOR)
|
||||
target_link_libraries(simplewallet tor-connect)
|
||||
endif()
|
||||
|
||||
ENABLE_SHARED_PCH(simplewallet SIMPLEWALLET)
|
||||
ENABLE_SHARED_PCH_EXECUTABLE(simplewallet)
|
||||
|
|
@ -199,9 +200,6 @@ if(BUILD_GUI)
|
|||
find_package(Qt5PrintSupport REQUIRED)
|
||||
|
||||
target_link_libraries(Zano wallet rpc currency_core crypto common zlibstatic ethash Qt5::WebEngineWidgets Qt5::PrintSupport ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES})
|
||||
if(NOT DISABLE_TOR)
|
||||
target_link_libraries(Zano tor-connect)
|
||||
endif()
|
||||
if (UNIX AND NOT APPLE)
|
||||
target_link_libraries(Zano rt)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -927,6 +927,7 @@ bool test_generator::init_test_wallet(const currency::account_base& account, con
|
|||
w->assign_account(account);
|
||||
w->set_genesis(genesis_hash);
|
||||
w->set_core_proxy(m_wallet_test_core_proxy);
|
||||
w->set_disable_tor_relay(true);
|
||||
|
||||
result = w;
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ std::shared_ptr<tools::wallet2> wallet_test::init_playtime_test_wallet(const std
|
|||
w->assign_account(acc);
|
||||
w->set_genesis(genesis_hash);
|
||||
w->set_core_proxy(m_core_proxy);
|
||||
w->set_disable_tor_relay(true);
|
||||
return w;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue