aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-21 19:27:33 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-21 23:22:15 +0000
commitd875a9ff905997062366162880ba46a359b1f7f9 (patch)
tree192302fbdd42e97e509b5d44382a2876d9674ebf /src/wallet
parentMerge pull request #2818 (diff)
downloadmonero-d875a9ff905997062366162880ba46a359b1f7f9.tar.xz
wallet2: detect multiple outputs from a tx to different subaddresses
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 00b096b88..5f6c1f20d 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -433,7 +433,7 @@ static void emplace_or_replace(std::unordered_multimap<crypto::hash, tools::wall
auto range = container.equal_range(key);
for (auto i = range.first; i != range.second; ++i)
{
- if (i->second.m_pd.m_tx_hash == pd.m_pd.m_tx_hash)
+ if (i->second.m_pd.m_tx_hash == pd.m_pd.m_tx_hash && i->second.m_pd.m_subaddr_index == pd.m_pd.m_subaddr_index)
{
i->second = pd;
return;