Wallet2: calculate approximate blockchain height on offline creation
Wallet API: add approximateBlockChainHeight()
This commit is contained in:
@@ -469,7 +469,10 @@ uint64_t WalletImpl::blockChainHeight() const
|
||||
{
|
||||
return m_wallet->get_blockchain_current_height();
|
||||
}
|
||||
|
||||
uint64_t WalletImpl::approximateBlockChainHeight() const
|
||||
{
|
||||
return m_wallet->get_approximate_blockchain_height();
|
||||
}
|
||||
uint64_t WalletImpl::daemonBlockChainHeight() const
|
||||
{
|
||||
std::string err;
|
||||
|
||||
@@ -76,6 +76,7 @@ public:
|
||||
uint64_t balance() const;
|
||||
uint64_t unlockedBalance() const;
|
||||
uint64_t blockChainHeight() const;
|
||||
uint64_t approximateBlockChainHeight() const;
|
||||
uint64_t daemonBlockChainHeight() const;
|
||||
uint64_t daemonBlockChainTargetHeight() const;
|
||||
bool synchronized() const;
|
||||
|
||||
Reference in New Issue
Block a user