diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-02-04 17:20:02 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-02-04 17:20:02 +0200 |
commit | eb21389953a4b927555ece4a1559446e81a8210b (patch) | |
tree | 60906c397031e8820e1753680a264c9c9b8c275e | |
parent | Merge pull request #1640 (diff) | |
parent | core: fix integrated addresses breaking with auto zero change (diff) | |
download | monero-eb21389953a4b927555ece4a1559446e81a8210b.tar.xz |
Merge pull request #1664
b5cb8861 core: fix integrated addresses breaking with auto zero change (moneromooo-monero)
-rw-r--r-- | src/cryptonote_core/cryptonote_format_utils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_format_utils.cpp b/src/cryptonote_core/cryptonote_format_utils.cpp index 70ba7ee18..2e6917878 100644 --- a/src/cryptonote_core/cryptonote_format_utils.cpp +++ b/src/cryptonote_core/cryptonote_format_utils.cpp @@ -443,6 +443,8 @@ namespace cryptonote { if (!memcmp(&destinations[n].addr, &sender_keys.m_account_address, sizeof(destinations[0].addr))) continue; + if (destinations[n].amount == 0) + continue; if (memcmp(&destinations[n].addr, &destinations[0].addr, sizeof(destinations[0].addr))) return null_pkey; } |