An optimization. Faster GetHex for exact strings.

This commit is contained in:
JoelKatz
2013-04-01 21:01:06 -07:00
parent 78d1a93e69
commit d73995e695
3 changed files with 56 additions and 16 deletions

View File

@@ -269,7 +269,7 @@ int HashedObjectStore::import(const std::string& file)
uint256 hash;
std::string hashStr;
importDB->getStr("Hash", hashStr);
hash.SetHex(hashStr, true);
hash.SetHexExact(hashStr);
if (hash.isZero())
{
cLog(lsWARNING) << "zero hash found in import table";