Don't let user connect to a node without ZMQ

This commit is contained in:
SChernykh
2023-03-10 14:46:53 +01:00
parent c1a1249be1
commit 146d29b627
5 changed files with 59 additions and 44 deletions
+6
View File
@@ -1153,6 +1153,12 @@ void P2PServer::check_zmq()
return;
}
if (!m_pool->zmq_running()) {
LOGERR(1, "ZMQ is not running, restarting it");
m_pool->restart_zmq();
return;
}
const uint64_t cur_time = seconds_since_epoch();
const uint64_t last_active = m_pool->zmq_last_active();