aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/levin.cpp
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2020-11-11 00:01:24 +0000
committerHoward Chu <hyc@symas.com>2020-11-16 12:36:37 +0000
commit91fd634768c866077e7245b55d2348619b1f5cf7 (patch)
tree697e2ee696a911e12fe2d1e0fdf9a0df15008ca1 /tests/unit_tests/levin.cpp
parentMerge pull request #6927 (diff)
downloadmonero-91fd634768c866077e7245b55d2348619b1f5cf7.tar.xz
Better log message for unusable anon networks
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/levin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/levin.cpp b/tests/unit_tests/levin.cpp
index f8f1ac2da..9ff68d927 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_;