diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-21 19:27:33 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-21 23:22:15 +0000 |
commit | d875a9ff905997062366162880ba46a359b1f7f9 (patch) | |
tree | 192302fbdd42e97e509b5d44382a2876d9674ebf /src | |
parent | Merge pull request #2818 (diff) | |
download | monero-d875a9ff905997062366162880ba46a359b1f7f9.tar.xz |
wallet2: detect multiple outputs from a tx to different subaddresses
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
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; |