From ea2301a3992962154eef6b33e86f7c38c49b4122 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 20 Feb 2020 13:58:12 -0500 Subject: fix the nonce reset issue --- test/test_p2p_stress.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_p2p_stress.cpp b/test/test_p2p_stress.cpp index f5a0b5d..d054a57 100644 --- a/test/test_p2p_stress.cpp +++ b/test/test_p2p_stress.cpp @@ -167,8 +167,9 @@ void install_proto(AppContext &app, const size_t &recv_chunk_size) { std::string s; for (const auto &p: app.tc) s += salticidae::stringprintf(" %d(%d)", ntohs(p.first.port), p.second.ncompleted); - SALTICIDAE_LOG_INFO("%d completed:%s", ntohs(app.addr.port), s.c_str()); - SALTICIDAE_LOG_INFO("%d npending: %lu", ntohs(app.addr.port), net.get_npending()); + std::string id_hex = salticidae::get_hex10(net.get_peer_id()); + SALTICIDAE_LOG_INFO("%s(%d) completed:%s", id_hex.c_str(), ntohs(app.addr.port), s.c_str()); + SALTICIDAE_LOG_INFO("%s(%d) npending: %lu", id_hex.c_str(), ntohs(app.addr.port), net.get_npending()); }); double t = salticidae::gen_rand_timeout(5); tc.timer.add(t); -- cgit v1.2.3