mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 10:29:25 -05:00
Wallet::paymentIdValid
This commit is contained in:
parent
18dd507024
commit
00ed12bd6c
@ -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 implementation ////////////////////////
|
||||||
WalletImpl::WalletImpl(bool testnet)
|
WalletImpl::WalletImpl(bool testnet)
|
||||||
|
@ -175,6 +175,7 @@ struct Wallet
|
|||||||
static uint64_t amountFromString(const std::string &amount);
|
static uint64_t amountFromString(const std::string &amount);
|
||||||
static uint64_t amountFromDouble(double amount);
|
static uint64_t amountFromDouble(double amount);
|
||||||
static std::string genPaymentId();
|
static std::string genPaymentId();
|
||||||
|
static bool paymentIdValid(const std::string &paiment_id);
|
||||||
|
|
||||||
// TODO?
|
// TODO?
|
||||||
// virtual uint64_t unlockedDustBalance() const = 0;
|
// virtual uint64_t unlockedDustBalance() const = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user