From 4fca34ddb4d711ad45f4ecb30d74c7d8ebdcba5b Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Thu, 10 Nov 2016 15:36:16 +0100 Subject: Wallet2: calculate approximate blockchain height on offline creation Wallet API: add approximateBlockChainHeight() --- src/wallet/api/wallet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/wallet/api/wallet.cpp') diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 134ea601c..d21d8b900 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -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; -- cgit v1.2.3