Improve cryptonote (block and tx) binary read performance

This commit is contained in:
Lee Clagett
2021-01-23 06:23:39 +00:00
parent 0a1ddc2eff
commit 08e4497c6e
29 changed files with 229 additions and 230 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ inline bool do_serialize(Archive<false>& ar, std::string& str)
ar.serialize_varint(size);
if (ar.remaining_bytes() < size)
{
ar.stream().setstate(std::ios::failbit);
ar.set_fail();
return false;
}