aboutsummaryrefslogtreecommitdiff
path: root/test/test_p2p.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-02-20 23:42:43 -0500
committerDeterminant <[email protected]>2020-02-20 23:42:43 -0500
commit7b06b11c20d70f61e3a0a17c7e7a2fdcef0a8757 (patch)
tree9984b070fe1846ab4f66ff0bfbe0abdb37bf8252 /test/test_p2p.cpp
parentb2f103a18b9bdfe601f72730e0efed2a4c36f773 (diff)
...
Diffstat (limited to 'test/test_p2p.cpp')
-rw-r--r--test/test_p2p.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_p2p.cpp b/test/test_p2p.cpp
index 4b6d451..e289b45 100644
--- a/test/test_p2p.cpp
+++ b/test/test_p2p.cpp
@@ -120,9 +120,8 @@ struct Net {
}
void add_peer(const std::string &listen_addr) {
- NetAddr addr(listen_addr);
try {
- net->add_peer(addr);
+ net->add_peer(NetAddr(listen_addr));
} catch (std::exception &err) {
fprintf(stdout, "net %lu: got error during a sync call: %s\n", id, err.what());
}