mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
wallet2_api: recognize full size payment ids as valid
This commit is contained in:
parent
34fcfcd7cc
commit
b6b86ab347
@ -158,8 +158,13 @@ std::string Wallet::genPaymentId()
|
|||||||
|
|
||||||
bool Wallet::paymentIdValid(const string &paiment_id)
|
bool Wallet::paymentIdValid(const string &paiment_id)
|
||||||
{
|
{
|
||||||
crypto::hash8 pid;
|
crypto::hash8 pid8;
|
||||||
return tools::wallet2::parse_short_payment_id(paiment_id, pid);
|
if (tools::wallet2::parse_short_payment_id(paiment_id, pid8))
|
||||||
|
return true;
|
||||||
|
crypto::hash pid;
|
||||||
|
if (tools::wallet2::parse_long_payment_id(paiment_id, pid))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t Wallet::maximumAllowedAmount()
|
uint64_t Wallet::maximumAllowedAmount()
|
||||||
|
Loading…
Reference in New Issue
Block a user