mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 01:42:27 +00:00
core: fix sending to the source address with a short payment id
It would fail to send, thinking it needs a destination address, since the destination matches the change address in this case.
This commit is contained in:
parent
421ab3119c
commit
51219457b1
1 changed files with 2 additions and 0 deletions
|
@ -189,6 +189,8 @@ namespace cryptonote
|
|||
addr = i.addr;
|
||||
++count;
|
||||
}
|
||||
if (count == 0 && change_addr)
|
||||
return change_addr->m_view_public_key;
|
||||
return addr.m_view_public_key;
|
||||
}
|
||||
//---------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue