libwallet_api: helper method to return maximumAllowedAmount
This commit is contained in:
parent
cbe534db1a
commit
32bc7b41c0
|
@ -154,6 +154,11 @@ bool Wallet::paymentIdValid(const string &paiment_id)
|
||||||
return tools::wallet2::parse_short_payment_id(paiment_id, pid);
|
return tools::wallet2::parse_short_payment_id(paiment_id, pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t Wallet::maximumAllowedAmount()
|
||||||
|
{
|
||||||
|
return std::numeric_limits<uint64_t>::max();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////////// WalletImpl implementation ////////////////////////
|
///////////////////////// WalletImpl implementation ////////////////////////
|
||||||
WalletImpl::WalletImpl(bool testnet)
|
WalletImpl::WalletImpl(bool testnet)
|
||||||
|
|
|
@ -216,6 +216,7 @@ struct Wallet
|
||||||
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);
|
static bool paymentIdValid(const std::string &paiment_id);
|
||||||
|
static uint64_t maximumAllowedAmount();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief refresh - refreshes the wallet, updating transactions from daemon
|
* @brief refresh - refreshes the wallet, updating transactions from daemon
|
||||||
|
|
Loading…
Reference in New Issue