Only do an expensive test that's no longer needed if PARANOID.

This commit is contained in:
JoelKatz
2013-02-04 16:56:57 -08:00
parent f68a2ed1f5
commit c6f1c6b8b1

View File

@@ -230,7 +230,9 @@ HashedObject::pointer HashedObjectStore::retrieve(const uint256& hash)
} }
#endif #endif
#ifdef PARANOID
assert(Serializer::getSHA512Half(data) == hash); assert(Serializer::getSHA512Half(data) == hash);
#endif
HashedObjectType htype = hotUNKNOWN; HashedObjectType htype = hotUNKNOWN;
switch (type[0]) switch (type[0])