Merge pull request #8543

d21fd92 rpc: dont shrink slice when loading from binary (Jeffrey Ryan)
This commit is contained in:
luigi1111 2022-10-28 00:48:48 -04:00
commit a43a5caefe
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -49,7 +49,7 @@ namespace serialization
byte_stream ss;
ss.reserve(initial_buffer_size);
store_to_binary(ss);
target = epee::byte_slice{std::move(ss)};
target = epee::byte_slice{std::move(ss), false};
return true;
CATCH_ENTRY("portable_storage::store_to_binary", false);
}