diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-12 20:29:32 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-12 20:29:32 -0500 |
commit | 5e81214d5c8f2bdeb40e54089465dc078142453a (patch) | |
tree | 6ab00b99033cde052c0658b53b50737bca987f4d /src | |
parent | Merge pull request #5737 (diff) | |
parent | wallet_rpc_server: fix get_bulk_payments with short payment ids (diff) | |
download | monero-5e81214d5c8f2bdeb40e54089465dc078142453a.tar.xz |
Merge pull request #5747
f3febaf wallet_rpc_server: fix get_bulk_payments with short payment ids (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 8b8d832dc..0e2a34470 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -1745,6 +1745,11 @@ namespace tools else if (payment_id_str.size() == 2 * sizeof(payment_id8)) { r = epee::string_tools::hex_to_pod(payment_id_str, payment_id8); + if (r) + { + memcpy(payment_id.data, payment_id8.data, 8); + memset(payment_id.data + 8, 0, 24); + } } else { |