diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 12:00:54 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 12:00:54 -0500 |
| commit | 7499837a6fe8d3533e1360dce8f3ba230ff76042 (patch) | |
| tree | cd3e089e2e09de33044220ff72461a761b028e3f /src/serialization/string.h | |
| parent | ca732849515d1e01147ded7db05defdb5518b13b (diff) | |
| parent | 08e4497c6e3b3f434c0bb255c3942648f153fe66 (diff) | |
| download | monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.tar.gz monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.tar.xz monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.zip | |
Merge pull request #7661
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
Diffstat (limited to 'src/serialization/string.h')
| -rw-r--r-- | src/serialization/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialization/string.h b/src/serialization/string.h index f5f69833a..f1f8f4ab0 100644 --- a/src/serialization/string.h +++ b/src/serialization/string.h @@ -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; } |
