mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Emergency fix. boost::format doesn't have the thread safety we thought.
This commit is contained in:
@@ -127,7 +127,7 @@ ProofOfWork ProofOfWorkGenerator::getProof()
|
||||
|
||||
boost::mutex::scoped_lock sl(mLock);
|
||||
|
||||
std::string s = boost::str(f % challenge.GetHex() % mTarget.GetHex() % mIterations % now);
|
||||
std::string s = boost::str(boost::format(f) % challenge.GetHex() % mTarget.GetHex() % mIterations % now);
|
||||
std::string c = mSecret.GetHex() + s;
|
||||
s += "-" + Serializer::getSHA512Half(c).GetHex();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user