mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Only do an expensive test that's no longer needed if PARANOID.
This commit is contained in:
@@ -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])
|
||||||
|
|||||||
Reference in New Issue
Block a user