diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-12 20:28:15 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-12 20:28:15 -0500 |
commit | fd3ff741644152ed559fcf79550435d3df75b764 (patch) | |
tree | b6fd3e3688520bd07272983fbe0855ded78fd2ef /src | |
parent | Merge pull request #5738 (diff) | |
parent | wallet_rpc_server: fix get_bulk_payments with short payment ids (diff) | |
download | monero-fd3ff741644152ed559fcf79550435d3df75b764.tar.xz |
Merge pull request #5746
3140a37 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 { |