diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-12-02 09:24:25 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-12-02 09:24:25 +0200 |
commit | 301279709dfac85f0668446ae936cf49bd91c46c (patch) | |
tree | 3e2b355ea854c0dff449092516f785c11d7a6675 /src/wallet/wallet2.cpp | |
parent | Merge pull request #2847 (diff) | |
parent | wallet2: detect multiple outputs from a tx to different subaddresses (diff) | |
download | monero-301279709dfac85f0668446ae936cf49bd91c46c.tar.xz |
Merge pull request #2850
d875a9ff wallet2: detect multiple outputs from a tx to different subaddresses (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-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 4ad7ede9c..425fb746a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -434,7 +434,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; |