diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-03-05 19:13:27 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-03-05 19:13:28 +0200 |
commit | 9841a452e5c2c37419f8fd29b87c080d974cbce5 (patch) | |
tree | bf45c2a14356abb2900d9f017c955e2ebcbacb8d /src | |
parent | Merge pull request #3332 (diff) | |
parent | core: fix sending to the source address with a short payment id (diff) | |
download | monero-9841a452e5c2c37419f8fd29b87c080d974cbce5.tar.xz |
Merge pull request #3338
51219457 core: fix sending to the source address with a short payment id (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index 77f69615b..d0a958e1e 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -190,6 +190,8 @@ namespace cryptonote addr = i.addr; ++count; } + if (count == 0 && change_addr) + return change_addr->m_view_public_key; return addr.m_view_public_key; } //--------------------------------------------------------------- |