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
1 changed files with 2 additions and 0 deletions

View File

@ -190,6 +190,8 @@ namespace cryptonote
addr = i.addr; addr = i.addr;
++count; ++count;
} }
if (count == 0 && change_addr)
return change_addr->m_view_public_key;
return addr.m_view_public_key; return addr.m_view_public_key;
} }
//--------------------------------------------------------------- //---------------------------------------------------------------