diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-10-22 22:19:43 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-10-22 22:19:43 +0200 |
| commit | 4f6ea2eb6a7bdc189858dc752e7b06210500db48 (patch) | |
| tree | f5160146aa628bbf6f4cfb81a1dc8c987537b7ae | |
| parent | b3d4505ae12b9759a4de86d99fec9c60d42c0e67 (diff) | |
| parent | b6b86ab347c2dc858741c6192f5e5b7f93b91cac (diff) | |
| download | monzero-core-4f6ea2eb6a7bdc189858dc752e7b06210500db48.tar.gz monzero-core-4f6ea2eb6a7bdc189858dc752e7b06210500db48.tar.xz monzero-core-4f6ea2eb6a7bdc189858dc752e7b06210500db48.zip | |
Merge pull request #1229
b6b86ab wallet2_api: recognize full size payment ids as valid (moneromooo-monero)
| -rw-r--r-- | src/wallet/api/wallet.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 470f51281..747263b54 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -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() |
