diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-09-26 21:35:00 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-09-26 23:19:25 +0300 |
commit | 7b4a85b309aa0fb864d63a2fd6f1ae062aaa71dd (patch) | |
tree | bd7c073734e9de7b2326ded18bfda73557aaa9eb /src/wallet/wallet2_api.h | |
parent | libwallet_api: Wallet::blockChainHeight, WalletListener::newBlock (diff) | |
download | monero-7b4a85b309aa0fb864d63a2fd6f1ae062aaa71dd.tar.xz |
wallet2_api: added Wallet::daemonBlockChainHeight()
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 08f010b32..f424f7258 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -236,11 +236,19 @@ struct Wallet virtual uint64_t unlockedBalance() const = 0; /** - * @brief getBlockChainHeight - returns current blockchain height + * @brief blockChainHeight - returns current blockchain height * @return */ virtual uint64_t blockChainHeight() const = 0; + /** + * @brief daemonBlockChainHeight - returns daemon blockchain height + * @return 0 - in case error communicating with the daemon. + * status() will return Status_Error and errorString() will return verbose error description + */ + virtual uint64_t daemonBlockChainHeight() const = 0; + + static std::string displayAmount(uint64_t amount); static uint64_t amountFromString(const std::string &amount); static uint64_t amountFromDouble(double amount); |