mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #1229
b6b86ab
wallet2_api: recognize full size payment ids as valid (moneromooo-monero)
This commit is contained in:
commit
4f6ea2eb6a
@ -158,8 +158,13 @@ std::string Wallet::genPaymentId()
|
||||
|
||||
bool Wallet::paymentIdValid(const string &paiment_id)
|
||||
{
|
||||
crypto::hash8 pid;
|
||||
return tools::wallet2::parse_short_payment_id(paiment_id, pid);
|
||||
crypto::hash8 pid8;
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user