aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-16 13:17:29 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-16 13:17:29 +0100
commit2bf65dfb8d2104ef72865c5e01c83db4cabe8e41 (patch)
tree8280a2ee9349376073246908a2bcb71638233dfa /src/wallet/api/wallet.cpp
parentMerge pull request #1203 (diff)
downloadmonero-2bf65dfb8d2104ef72865c5e01c83db4cabe8e41.tar.xz
wallet_api: do not override invalid payment id
Instead, return an empty string to mark the error
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r--src/wallet/api/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index d1c849537..37d10614e 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -360,7 +360,7 @@ std::string WalletImpl::integratedAddress(const std::string &payment_id) const
{
crypto::hash8 pid;
if (!tools::wallet2::parse_short_payment_id(payment_id, pid)) {
- pid = crypto::rand<crypto::hash8>();
+ return "";
}
return m_wallet->get_account().get_public_integrated_address_str(pid, m_wallet->testnet());
}