diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-18 19:13:43 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-18 19:13:43 +0000 |
commit | 69b188c4b2d1604ef5bb60b67e215c58e5ffac94 (patch) | |
tree | 4aa759a40c0613d8dd11af2d324ebc3bf2e917cb /src | |
parent | Merge pull request #1346 (diff) | |
download | monero-69b188c4b2d1604ef5bb60b67e215c58e5ffac94.tar.xz |
wallet2_api: fix payment ids from integrated addresses being ignored
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/api/wallet.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index d21d8b900..215b61aef 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -605,6 +605,17 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, const break; } } + else if (has_payment_id) { + std::string extra_nonce; + set_encrypted_payment_id_to_tx_extra_nonce(extra_nonce, payment_id_short); + bool r = add_extra_nonce_to_tx_extra(extra, extra_nonce); + if (!r) { + m_status = Status_Error; + m_errorString = tr("Failed to add short payment id: ") + epee::string_tools::pod_to_hex(payment_id_short); + break; + } + } + //std::vector<tools::wallet2::pending_tx> ptx_vector; |