mirror of
https://github.com/wownero/RandomX.git
synced 2026-10-19 08:18:45 +02:00
Remember cache input data (#133)
Make init_cache and set_cache no-ops if fed the same data as before
This commit is contained in:
@@ -65,6 +65,8 @@ protected:
|
||||
randomx_dataset* datasetPtr;
|
||||
};
|
||||
uint64_t datasetOffset;
|
||||
public:
|
||||
std::string cacheKey;
|
||||
};
|
||||
|
||||
namespace randomx {
|
||||
@@ -80,4 +82,4 @@ namespace randomx {
|
||||
void generateProgram(void* seed);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user