Merge pull request #10600

6fc7aa8 cryptonote_protocol: fix peer overview logging (selsta)
This commit is contained in:
tobtoht
2026-05-20 15:50:24 +00:00
@@ -2725,10 +2725,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();