aboutsummaryrefslogtreecommitdiff
path: root/test/test_p2p_stress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_p2p_stress.cpp')
-rw-r--r--test/test_p2p_stress.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_p2p_stress.cpp b/test/test_p2p_stress.cpp
index dca9cf4..f5a0b5d 100644
--- a/test/test_p2p_stress.cpp
+++ b/test/test_p2p_stress.cpp
@@ -238,7 +238,13 @@ int main(int argc, char **argv) {
masksigs();
a.net->listen(a.addr);
for (auto &paddr: addrs)
- if (paddr != a.addr) a.net->add_peer(paddr);
+ if (paddr != a.addr)
+ {
+ salticidae::PeerId pid{paddr};
+ a.net->add_peer(pid);
+ a.net->set_peer_addr(pid, paddr);
+ a.net->conn_peer(pid);
+ }
a.ec.dispatch();}));
EventContext ec;