wallet2: detect multiple outputs from a tx to different subaddresses

release-v0.4.0.1
moneromooo-monero 7 years ago
parent dc6a8014bd
commit d875a9ff90
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -433,7 +433,7 @@ static void emplace_or_replace(std::unordered_multimap<crypto::hash, tools::wall
auto range = container.equal_range(key); auto range = container.equal_range(key);
for (auto i = range.first; i != range.second; ++i) 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; i->second = pd;
return; return;

Loading…
Cancel
Save