aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-05 19:13:27 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-05 19:13:28 +0200
commit9841a452e5c2c37419f8fd29b87c080d974cbce5 (patch)
treebf45c2a14356abb2900d9f017c955e2ebcbacb8d /src/cryptonote_core
parentMerge pull request #3332 (diff)
parentcore: fix sending to the source address with a short payment id (diff)
downloadmonero-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/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_tx_utils.cpp2
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;
}
//---------------------------------------------------------------