diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-06-24 16:17:06 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-07-18 23:02:18 +0300 |
commit | 00ed12bd6c6457749e018b93301ec18c1a0624ab (patch) | |
tree | 995bd447095c84c53c64958cb64573520744f42c /src/wallet/api/wallet.cpp | |
parent | Merge pull request #889 (diff) | |
download | monero-00ed12bd6c6457749e018b93301ec18c1a0624ab.tar.xz |
Wallet::paymentIdValid
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r-- | src/wallet/api/wallet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index be379cb99..5a0642f30 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -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) |