diff options
author | Determinant <[email protected]> | 2020-02-20 13:58:12 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2020-02-20 13:58:12 -0500 |
commit | ea2301a3992962154eef6b33e86f7c38c49b4122 (patch) | |
tree | 44610307d0f6a6d5d0dd67a80de79426b2b00d63 /test/test_p2p_stress.cpp | |
parent | 4cf18e0dea1e2c8933f87b6a2f3fb318b256ef22 (diff) |
fix the nonce reset issue
Diffstat (limited to 'test/test_p2p_stress.cpp')
-rw-r--r-- | test/test_p2p_stress.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); |