cryptonote_protocol: fix peer overview logging

This commit is contained in:
selsta
2026-05-14 18:09:48 +02:00
parent fb5b06bd3b
commit 6fc7aa8398
@@ -2729,10 +2729,10 @@ skip:
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);
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)
ss << (((now - ctx.m_last_request_time).total_microseconds() > IDLE_PEER_KICK_TIME) ? "!" : "?");
ss << + " ";
ss << " ";
return true;
});
return ss.str();