mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
Fix: don't call update_block_template twice
This commit is contained in:
parent
fb9ade7e9f
commit
5e7d48e70c
2 changed files with 7 additions and 8 deletions
|
@ -255,7 +255,7 @@ void MergeMiningClientTari::submit_solution(const BlockTemplate* block_tpl, cons
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const std::string& h = response.block_hash();
|
const std::string& h = response.block_hash();
|
||||||
LOGINFO(3, log::LightGreen() << "Mined Tari block " << log::hex_buf(h.data(), h.size()));
|
LOGINFO(0, log::LightGreen() << "Mined Tari block " << log::hex_buf(h.data(), h.size()) << " at height " << block.header().height());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -578,14 +578,13 @@ void p2pool::update_aux_data(const hash& chain_id)
|
||||||
|
|
||||||
if (!chain_id.empty()) {
|
if (!chain_id.empty()) {
|
||||||
LOGINFO(4, "New aux data from chain " << chain_id);
|
LOGINFO(4, "New aux data from chain " << chain_id);
|
||||||
}
|
|
||||||
|
|
||||||
if (!is_main_thread()) {
|
if (!is_main_thread()) {
|
||||||
update_block_template_async();
|
update_block_template_async();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
update_block_template();
|
update_block_template();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void p2pool::submit_block_async(uint32_t template_id, uint32_t nonce, uint32_t extra_nonce)
|
void p2pool::submit_block_async(uint32_t template_id, uint32_t nonce, uint32_t extra_nonce)
|
||||||
|
|
Loading…
Reference in a new issue