mirror of
https://github.com/monero-project/monero.git
synced 2026-06-14 03:51:32 -07: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) {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user