Faster initial sync

0.5-1 seconds saved on verification after removing the repeated `get_shares` calls
This commit is contained in:
SChernykh
2024-11-22 11:44:49 +01:00
parent c0d1070395
commit fd0a7ea0c7
7 changed files with 55 additions and 33 deletions

View File

@@ -147,16 +147,10 @@ private:
ChainMain m_watchBlock;
hash m_watchBlockMerkleRoot;
struct PrecalcJob
{
const PoolBlock* b;
std::vector<MinerShare> shares;
};
uv_cond_t m_precalcJobsCond;
uv_mutex_t m_precalcJobsMutex;
std::vector<PrecalcJob*> m_precalcJobs;
std::vector<const PoolBlock*> m_precalcJobs;
std::vector<std::thread> m_precalcWorkers;
unordered_set<size_t>* m_uniquePrecalcInputs;