Merge pull request #3338

51219457 core: fix sending to the source address with a short payment id (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-03-05 19:13:27 +02:00
commit 9841a452e5
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -190,6 +190,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;
}
//---------------------------------------------------------------