mirror of
https://github.com/monero-project/monero.git
synced 2025-12-14 19:57:20 -05:00
Wallet::paymentIdValid
This commit is contained in:
parent
18dd507024
commit
00ed12bd6c
2 changed files with 7 additions and 0 deletions
|
|
@ -144,6 +144,12 @@ std::string Wallet::genPaymentId()
|
|||
|
||||
}
|
||||
|
||||
bool Wallet::paymentIdValid(const string &paiment_id)
|
||||
{
|
||||
crypto::hash8 pid;
|
||||
return tools::wallet2::parse_short_payment_id(paiment_id, pid);
|
||||
}
|
||||
|
||||
|
||||
///////////////////////// WalletImpl implementation ////////////////////////
|
||||
WalletImpl::WalletImpl(bool testnet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue