Wallet: Avoid treating change-in-the-addressbook as non-change everywhere

This commit is contained in:
Luke Dashjr
2020-02-22 04:16:36 +00:00
parent 8e64b8c84b
commit c751d886f4
5 changed files with 28 additions and 18 deletions

View File

@@ -55,7 +55,7 @@ struct AddressTableEntryLessThan
static AddressTableEntry::Type translateTransactionType(const QString &strPurpose, bool isMine)
{
AddressTableEntry::Type addressType = AddressTableEntry::Hidden;
// "refund" addresses aren't shown, and change addresses aren't in m_address_book at all.
// "refund" addresses aren't shown, and change addresses aren't returned by getAddresses at all.
if (strPurpose == "send")
addressType = AddressTableEntry::Sending;
else if (strPurpose == "receive")