mirror of
https://github.com/monero-project/monero.git
synced 2025-12-23 15:38:10 -08:00
wallet2_api: added Wallet::daemonBlockChainHeight()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user