forked from lthn/blockchain
fix for MOBILE_WALLET_BUILD
This commit is contained in:
parent
1548ab662a
commit
7a6883457b
2 changed files with 4 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ namespace tools
|
|||
{
|
||||
return call_request([&]() {
|
||||
#ifdef MOBILE_WALLET_BUILD
|
||||
LOG_PRINT_L0("[INVOKE_PROXY] ---> " << method_name)
|
||||
LOG_PRINT_L0("[INVOKE_PROXY] ---> " << uri)
|
||||
#endif
|
||||
|
||||
const epee::net_utils::http::http_response_info* response = nullptr;
|
||||
|
|
@ -67,7 +67,7 @@ namespace tools
|
|||
response_code = response->m_response_code;
|
||||
}
|
||||
#ifdef MOBILE_WALLET_BUILD
|
||||
LOG_PRINT_L0("[INVOKE_PROXY] <---" << method_name)
|
||||
LOG_PRINT_L0("[INVOKE_PROXY] <---" << uri)
|
||||
#endif
|
||||
return res;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -573,6 +573,7 @@ bool wallets_manager::init_local_daemon()
|
|||
|
||||
std::string wallets_manager::setup_wallet_rpc(const std::string& jwt_secret)
|
||||
{
|
||||
#ifndef MOBILE_WALLET_BUILD
|
||||
if (!jwt_secret.size())
|
||||
{
|
||||
//disabling wallet RPC
|
||||
|
|
@ -585,6 +586,7 @@ std::string wallets_manager::setup_wallet_rpc(const std::string& jwt_secret)
|
|||
m_wallet_rpc_server.set_jwt_secret(jwt_secret);
|
||||
|
||||
m_rpc_server.set_rpc_chain_handler(this);
|
||||
#endif
|
||||
return WALLET_RPC_STATUS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue