mirror of
https://github.com/monero-project/monero.git
synced 2024-12-22 19:49:30 +00:00
Merge pull request #8067
53be72c
make_uri disallows standalone payment ids (woodser)
This commit is contained in:
commit
3ed0cc6e20
1 changed files with 2 additions and 6 deletions
|
@ -13728,12 +13728,8 @@ std::string wallet2::make_uri(const std::string &address, const std::string &pay
|
||||||
|
|
||||||
if (!payment_id.empty())
|
if (!payment_id.empty())
|
||||||
{
|
{
|
||||||
crypto::hash pid32;
|
error = "Standalone payment id deprecated, use integrated address instead";
|
||||||
if (!wallet2::parse_long_payment_id(payment_id, pid32))
|
return std::string();
|
||||||
{
|
|
||||||
error = "Invalid payment id";
|
|
||||||
return std::string();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string uri = "monero:" + address;
|
std::string uri = "monero:" + address;
|
||||||
|
|
Loading…
Reference in a new issue