|
|
@ -4067,9 +4067,10 @@ namespace tools
|
|
|
|
{ cryptonote::TESTNET, "testnet" },
|
|
|
|
{ cryptonote::TESTNET, "testnet" },
|
|
|
|
{ cryptonote::STAGENET, "stagenet" },
|
|
|
|
{ cryptonote::STAGENET, "stagenet" },
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
if (!req.any_net_type && !m_wallet) return not_open(er);
|
|
|
|
for (const auto &net_type: net_types)
|
|
|
|
for (const auto &net_type: net_types)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!req.any_net_type && net_type.type != m_wallet->nettype())
|
|
|
|
if (!req.any_net_type && (!m_wallet || net_type.type != m_wallet->nettype()))
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
if (req.allow_openalias)
|
|
|
|
if (req.allow_openalias)
|
|
|
|
{
|
|
|
|
{
|
|
|
|