1
0
Fork 0
forked from lthn/blockchain

fix for MOBILE_WALLET_BUILD

This commit is contained in:
cryptozoidberg 2024-03-19 12:30:09 +00:00
parent 1548ab662a
commit 7a6883457b
2 changed files with 4 additions and 2 deletions

View file

@ -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;
});

View file

@ -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;
}