mirror of
https://github.com/jwinterm/wownero.git
synced 2026-10-20 05:58:35 +02: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:
@@ -189,6 +189,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;
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------
|
//---------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user