mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-03 17:29:24 +00:00
data api: fixed one block missing to calculate effort
This commit is contained in:
parent
382116759d
commit
36ee76d4d2
1 changed files with 1 additions and 1 deletions
|
@ -965,7 +965,7 @@ void p2pool::api_update_block_found(const ChainMain* data)
|
|||
if (data) {
|
||||
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",
|
||||
|
|
Loading…
Reference in a new issue