Fixed build errors

This commit is contained in:
SChernykh
2025-06-06 20:21:47 +02:00
parent 435e6c7599
commit 3147a2e968
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -113,11 +113,11 @@ MergeMiningClientTari::MergeMiningClientTari(p2pool* pool, std::string host, con
if (f.is_open()) { if (f.is_open()) {
while (f.good()) { while (f.good()) {
std::string s; std::string node;
std::getline(f, s); std::getline(f, node);
if (!s.empty()) { if (!node.empty()) {
PushBlockThreadData* data = new PushBlockThreadData{ {}, this, std::move(s) }; PushBlockThreadData* data = new PushBlockThreadData{ {}, this, std::move(node) };
err = uv_thread_create(&data->m_worker, push_block_thread, data); err = uv_thread_create(&data->m_worker, push_block_thread, data);
if (err) { if (err) {
@@ -950,7 +950,7 @@ void MergeMiningClientTari::push_block_thread(void* arg)
{ {
set_thread_name("Push Tari block"); set_thread_name("Push Tari block");
const PushBlockThreadData* data = reinterpret_cast<const PushBlockThreadData*>(arg); PushBlockThreadData* data = reinterpret_cast<PushBlockThreadData*>(arg);
LOGINFO(1, "push block thread ready for " << data->m_node); LOGINFO(1, "push block thread ready for " << data->m_node);
@@ -1014,8 +1014,8 @@ void MergeMiningClientTari::push_blocks_to(const std::string& node_address)
} }
} }
else { else {
const std::string& h = response.block_hash(); const std::string& h1 = response.block_hash();
LOGINFO(0, log::LightGreen() << "Pushed Tari block " << log::hex_buf(h.data(), h.size()) << " to " << node_address); LOGINFO(0, log::LightGreen() << "Pushed Tari block " << log::hex_buf(h1.data(), h1.size()) << " to " << node_address);
} }
} }
} }
+1 -1
View File
@@ -142,7 +142,7 @@ private:
uv_thread_t m_worker; uv_thread_t m_worker;
MergeMiningClientTari* m_client; MergeMiningClientTari* m_client;
const std::string m_node; std::string m_node;
}; };
std::vector<PushBlockThreadData*> m_pushBlockThreads; std::vector<PushBlockThreadData*> m_pushBlockThreads;