diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-16 13:17:29 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-16 13:17:29 +0100 |
commit | 2bf65dfb8d2104ef72865c5e01c83db4cabe8e41 (patch) | |
tree | 8280a2ee9349376073246908a2bcb71638233dfa | |
parent | Merge pull request #1203 (diff) | |
download | monero-2bf65dfb8d2104ef72865c5e01c83db4cabe8e41.tar.xz |
wallet_api: do not override invalid payment id
Instead, return an empty string to mark the error
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/wallet.cpp | 2 |
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()); } |