Merge pull request #3068 from SChernykh/dev

Better fix for daemon solo mining with ZMQ
This commit is contained in:
xmrig 2022-06-13 03:37:56 +07:00 committed by GitHub
commit ee51dec499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -863,6 +863,9 @@ void xmrig::DaemonClient::ZMQParse()
LOG_DEBUG(CYAN("tcp-zmq://%s:%u") BLACK_BOLD(" read ") CYAN_BOLD("%zu") BLACK_BOLD(" bytes") " %s", m_pool.host().data(), m_pool.zmq_port(), msg.size() - 1, msg.data()); LOG_DEBUG(CYAN("tcp-zmq://%s:%u") BLACK_BOLD(" read ") CYAN_BOLD("%zu") BLACK_BOLD(" bytes") " %s", m_pool.host().data(), m_pool.zmq_port(), msg.size() - 1, msg.data());
# endif # endif
// Clear previous hash and check daemon height to guarantee that xmrig will call get_block_template RPC later
// We can't call get_block_template directly because daemon is not ready yet
m_prevHash = nullptr;
send(kGetHeight); send(kGetHeight);
} }