aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-15 17:20:18 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-15 17:20:18 -0500
commit1a259a1c7002ccc0889df7f2b74aab7094465e27 (patch)
treec4dadc57c4bdf0fe412a36f9e08d05a725bc60b2 /src
parentMerge pull request #5662 (diff)
parentwallet2: fix change subaddress mixup when sending pre rct outputs (diff)
downloadmonero-1a259a1c7002ccc0889df7f2b74aab7094465e27.tar.xz
Merge pull request #5672
b2bfcab wallet2: fix change subaddress mixup when sending pre rct outputs (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index b2f7c4e1b..23c375924 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -8167,6 +8167,7 @@ void wallet2::transfer_selected(const std::vector<cryptonote::tx_destination_ent
if (needed_money < found_money)
{
change_dts.addr = get_subaddress({subaddr_account, 0});
+ change_dts.is_subaddress = subaddr_account != 0;
change_dts.amount = found_money - needed_money;
}