From 066a30bfa780da53466657e98d6eb9dbd521b9f3 Mon Sep 17 00:00:00 2001 From: Matt Hess Date: Sat, 3 Jan 2026 18:02:35 +0000 Subject: [PATCH] cleaned up zmq timeout msg, made it less alarming, more poisson friendly --- src/p2p_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p2p_server.cpp b/src/p2p_server.cpp index 7977e64..c77cb6c 100644 --- a/src/p2p_server.cpp +++ b/src/p2p_server.cpp @@ -1630,11 +1630,11 @@ void P2PServer::check_host() const uint64_t cur_time = seconds_since_epoch(); const uint64_t last_active = m_pool->zmq_last_active(); - // If there were no ZMQ messages in the last 5 minutes, then the node is probably stuck + // If there were no ZMQ messages in the last 5 minutes, reconnect (may be long block time or connection issue) if (cur_time >= last_active + 300) { const uint64_t dt = static_cast(cur_time - last_active); const Params::Host& host = m_pool->current_host(); - LOGERR(1, "no ZMQ messages received from host " << host.m_displayName << " in the last " << dt << " seconds, check your salviumd/p2pool/network/firewall setup!!!"); + LOGWARN(1, "no ZMQ activity from " << host.m_displayName << " for " << dt << " seconds (possible long block time), reconnecting to daemon"); m_pool->reconnect_to_host(); } }