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 /src | |
| parent | 31cf4e736203d687be97d3f65425fcdbcbe77ac6 (diff) | |
| parent | b5cb8861c731cd80176eb6e8e1dcaa36ec51b61e (diff) | |
| download | monzero-core-eb21389953a4b927555ece4a1559446e81a8210b.tar.gz monzero-core-eb21389953a4b927555ece4a1559446e81a8210b.tar.xz monzero-core-eb21389953a4b927555ece4a1559446e81a8210b.zip | |
Merge pull request #1664
b5cb8861 core: fix integrated addresses breaking with auto zero change (moneromooo-monero)
Diffstat (limited to 'src')
| -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; } |
