mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 08:05:07 -04:00
Separate rpc port for testnet
This commit is contained in:
parent
98ed9a41f7
commit
658b6690a3
5 changed files with 44 additions and 12 deletions
|
@ -542,8 +542,12 @@ bool wallet2::check_connection()
|
|||
|
||||
net_utils::http::url_content u;
|
||||
net_utils::parse_url(m_daemon_address, u);
|
||||
|
||||
if(!u.port)
|
||||
u.port = config::RPC_DEFAULT_PORT;
|
||||
{
|
||||
u.port = m_testnet ? config::testnet::RPC_DEFAULT_PORT : config::RPC_DEFAULT_PORT;
|
||||
}
|
||||
|
||||
return m_http_client.connect(u.host, std::to_string(u.port), WALLET_RCP_CONNECTION_TIMEOUT);
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue