mirror of
https://github.com/monero-project/monero.git
synced 2025-08-01 22:56:13 -04:00
wallet_rpc_server: fix get_bulk_payments with short payment ids
This commit is contained in:
parent
9d7107c870
commit
3140a378da
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue