mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-20 05:28:47 -06:00
data api: fixed one block missing to calculate effort
This commit is contained in:
parent
382116759d
commit
36ee76d4d2
@ -965,7 +965,7 @@ void p2pool::api_update_block_found(const ChainMain* data)
|
|||||||
if (data) {
|
if (data) {
|
||||||
m_foundBlocks.emplace_back(cur_time, data->height, data->id, diff, total_hashes);
|
m_foundBlocks.emplace_back(cur_time, data->height, data->id, diff, total_hashes);
|
||||||
}
|
}
|
||||||
found_blocks.assign(m_foundBlocks.end() - std::min<size_t>(m_foundBlocks.size(), 50), m_foundBlocks.end());
|
found_blocks.assign(m_foundBlocks.end() - std::min<size_t>(m_foundBlocks.size(), 51), m_foundBlocks.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
m_api->set(p2pool_api::Category::POOL, "blocks",
|
m_api->set(p2pool_api::Category::POOL, "blocks",
|
||||||
|
Loading…
Reference in New Issue
Block a user