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/device_trezor/trezor | |
parent | Merge pull request #7729 (diff) | |
parent | Improve cryptonote (block and tx) binary read performance (diff) | |
download | monero-7499837a6fe8d3533e1360dce8f3ba230ff76042.tar.xz |
Merge pull request #7661
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
Diffstat (limited to 'src/device_trezor/trezor')
-rw-r--r-- | src/device_trezor/trezor/protocol.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/device_trezor/trezor/protocol.hpp b/src/device_trezor/trezor/protocol.hpp index fa824ec3b..0fdd36a51 100644 --- a/src/device_trezor/trezor/protocol.hpp +++ b/src/device_trezor/trezor/protocol.hpp @@ -66,9 +66,7 @@ namespace protocol{ template<typename T> bool cn_deserialize(const void * buff, size_t len, T & dst){ - std::stringstream ss; - ss.write(static_cast<const char *>(buff), len); //ss << tx_blob; - binary_archive<false> ba(ss); + binary_archive<false> ba{{reinterpret_cast<const std::uint8_t*>(buff), len}}; bool r = ::serialization::serialize(ba, dst); return r; } |