mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
Merge pull request #1228
2bf65df
wallet_api: do not override invalid payment id (moneromooo-monero)
This commit is contained in:
commit
b3d4505ae1
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ std::string WalletImpl::integratedAddress(const std::string &payment_id) const
|
||||||
{
|
{
|
||||||
crypto::hash8 pid;
|
crypto::hash8 pid;
|
||||||
if (!tools::wallet2::parse_short_payment_id(payment_id, 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());
|
return m_wallet->get_account().get_public_integrated_address_str(pid, m_wallet->testnet());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue