mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 14:53:27 +01:00
Merge pull request #2850
d875a9ff
wallet2: detect multiple outputs from a tx to different subaddresses (moneromooo-monero)
This commit is contained in:
commit
301279709d
@ -434,7 +434,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…
Reference in New Issue
Block a user