mirror of
https://github.com/wownero/wownero.git
synced 2026-10-22 01:48:34 +02:00
cryptonote_protocol: fix peer overview logging
This commit is contained in:
@@ -2729,10 +2729,10 @@ skip:
|
|||||||
m_p2p->for_each_connection([&](const connection_context &ctx, nodetool::peerid_type peer_id, uint32_t support_flags) {
|
m_p2p->for_each_connection([&](const connection_context &ctx, nodetool::peerid_type peer_id, uint32_t support_flags) {
|
||||||
const uint32_t stripe = tools::get_pruning_stripe(ctx.m_pruning_seed);
|
const uint32_t stripe = tools::get_pruning_stripe(ctx.m_pruning_seed);
|
||||||
char state_char = cryptonote::get_protocol_state_char(ctx.m_state);
|
char state_char = cryptonote::get_protocol_state_char(ctx.m_state);
|
||||||
ss << stripe + state_char;
|
ss << stripe << state_char;
|
||||||
if (ctx.m_last_request_time != boost::date_time::not_a_date_time)
|
if (ctx.m_last_request_time != boost::date_time::not_a_date_time)
|
||||||
ss << (((now - ctx.m_last_request_time).total_microseconds() > IDLE_PEER_KICK_TIME) ? "!" : "?");
|
ss << (((now - ctx.m_last_request_time).total_microseconds() > IDLE_PEER_KICK_TIME) ? "!" : "?");
|
||||||
ss << + " ";
|
ss << " ";
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
return ss.str();
|
return ss.str();
|
||||||
|
|||||||
Reference in New Issue
Block a user