18#include <unordered_map>
29 virtual bool GetHash(int64_t blockId, std::string& hash)
const = 0;
30 virtual void UpdateHash(int64_t blockId,
const std::string& hash) = 0;
47 std::vector<std::pair<int64_t, std::string>>
TakeResult();
virtual void UpdateHash(int64_t blockId, const std::string &hash)=0
virtual bool GetHash(int64_t blockId, std::string &hash) const =0
virtual ~BlockHashCache()=default
bool ComputeHashes(BlockHashCache &cache, std::vector< LockedBlock > blocks, std::function< void()> onComplete)
BlockHasher & operator=(const BlockHasher &)=delete
BlockHasher(BlockHasher &&)=delete
std::unique_ptr< Workers > mWorkers
BlockHasher & operator=(BlockHasher &&)=delete
BlockHasher(const BlockHasher &)=delete
std::vector< std::pair< int64_t, std::string > > TakeResult()