diff options
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 4a10f7133..ebfcbc3d7 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -189,6 +189,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; } //--------------------------------------------------------------- |