mirror of
https://github.com/monero-project/monero.git
synced 2026-08-01 00:20:42 -07:00
Improve cryptonote (block and tx) binary read performance
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user