Better log message for unusable anon networks

This commit is contained in:
Howard Chu 2020-11-11 00:01:24 +00:00
parent f690e4984d
commit 398e64ccbe
No known key found for this signature in database
GPG key ID: FD2A70B44AB11BA7
4 changed files with 20 additions and 16 deletions

View file

@ -329,7 +329,8 @@ namespace
epee::byte_slice noise = nullptr;
if (noise_size)
noise = epee::levin::make_noise_notify(noise_size);
return cryptonote::levin::notify{io_service_, connections_, std::move(noise), is_public, pad_txs, events_};
epee::net_utils::zone zone = is_public ? epee::net_utils::zone::public_ : epee::net_utils::zone::i2p;
return cryptonote::levin::notify{io_service_, connections_, std::move(noise), zone, pad_txs, events_};
}
boost::uuids::random_generator random_generator_;