aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-22 22:18:36 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-22 22:18:36 +0200
commitb3d4505ae12b9759a4de86d99fec9c60d42c0e67 (patch)
tree9d7f43d2e387569900804374f727345caeb70ac6 /src/wallet/api/wallet.cpp
parent09f62ed33ed8255267dfe09f7119316a5df1b83c (diff)
parent2bf65dfb8d2104ef72865c5e01c83db4cabe8e41 (diff)
downloadmonzero-core-b3d4505ae12b9759a4de86d99fec9c60d42c0e67.tar.gz
monzero-core-b3d4505ae12b9759a4de86d99fec9c60d42c0e67.tar.xz
monzero-core-b3d4505ae12b9759a4de86d99fec9c60d42c0e67.zip
Merge pull request #1228
2bf65df wallet_api: do not override invalid payment id (moneromooo-monero)
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 94d62666a..470f51281 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());
}