mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
rpc: dont shrink slice when loading from binary
This commit is contained in:
parent
5256fdd7a1
commit
d21fd9242c
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace serialization
|
||||||
byte_stream ss;
|
byte_stream ss;
|
||||||
ss.reserve(initial_buffer_size);
|
ss.reserve(initial_buffer_size);
|
||||||
store_to_binary(ss);
|
store_to_binary(ss);
|
||||||
target = epee::byte_slice{std::move(ss)};
|
target = epee::byte_slice{std::move(ss), false};
|
||||||
return true;
|
return true;
|
||||||
CATCH_ENTRY("portable_storage::store_to_binary", false);
|
CATCH_ENTRY("portable_storage::store_to_binary", false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue