From 398e64ccbe166b1026ef1518dbbf07940c4abe48 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 11 Nov 2020 00:01:24 +0000 Subject: Better log message for unusable anon networks --- tests/unit_tests/levin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/unit_tests') diff --git a/tests/unit_tests/levin.cpp b/tests/unit_tests/levin.cpp index 28032fa50..128d51fb3 100644 --- a/tests/unit_tests/levin.cpp +++ b/tests/unit_tests/levin.cpp @@ -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_; -- cgit v1.2.3