wallet2: fix change subaddress mixup when sending pre rct outputs

This commit is contained in:
moneromooo-monero 2019-06-13 10:43:33 +00:00
parent 6335509727
commit b2bfcab618
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 0 deletions

View File

@ -8163,6 +8163,7 @@ void wallet2::transfer_selected(const std::vector<cryptonote::tx_destination_ent
if (needed_money < found_money) if (needed_money < found_money)
{ {
change_dts.addr = get_subaddress({subaddr_account, 0}); change_dts.addr = get_subaddress({subaddr_account, 0});
change_dts.is_subaddress = subaddr_account != 0;
change_dts.amount = found_money - needed_money; change_dts.amount = found_money - needed_money;
} }