mirror of
https://github.com/monero-project/monero.git
synced 2026-01-27 15:25:37 -08:00
wallet_rpc_server: fix get_bulk_payments with short payment ids
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user