diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-08-23 12:35:01 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-08-23 12:35:45 +0300 |
commit | 32bc7b41c0193297cc3b67a1b7a941813a407679 (patch) | |
tree | 94dd8e6554ec010b4fbe6df58d72174a3b8098cb | |
parent | libwallet_api: tests: removed logged passwords (diff) | |
download | monero-32bc7b41c0193297cc3b67a1b7a941813a407679.tar.xz |
libwallet_api: helper method to return maximumAllowedAmount
-rw-r--r-- | src/wallet/api/wallet.cpp | 5 | ||||
-rw-r--r-- | src/wallet/wallet2_api.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index ff74ec6c1..a2066e62e 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -154,6 +154,11 @@ bool Wallet::paymentIdValid(const string &paiment_id) return tools::wallet2::parse_short_payment_id(paiment_id, pid); } +uint64_t Wallet::maximumAllowedAmount() +{ + return std::numeric_limits<uint64_t>::max(); +} + ///////////////////////// WalletImpl implementation //////////////////////// WalletImpl::WalletImpl(bool testnet) diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 2c5836573..e880b1c68 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -216,6 +216,7 @@ struct Wallet static uint64_t amountFromDouble(double amount); static std::string genPaymentId(); static bool paymentIdValid(const std::string &paiment_id); + static uint64_t maximumAllowedAmount(); /** * @brief refresh - refreshes the wallet, updating transactions from daemon |