Added daemon BC sync progress bar

depends on https://github.com/monero-project/monero/pull/1173

Signed-off-by: Jacob Brydolf <jacob@brydolf.net>
This commit is contained in:
Jacob Brydolf
2016-10-03 23:29:30 +02:00
committed by Ilya Kitaev
parent 6a50951940
commit af70c81082
6 changed files with 115 additions and 2 deletions

View File

@@ -157,6 +157,12 @@ quint64 Wallet::daemonBlockChainHeight() const
return m_daemonBlockChainHeight;
}
quint64 Wallet::daemonBlockChainTargetHeight() const
{
m_daemonBlockChainTargetHeight = m_walletImpl->daemonBlockChainTargetHeight();
return m_daemonBlockChainTargetHeight;
}
bool Wallet::refresh()
{
bool result = m_walletImpl->refresh();

View File

@@ -92,6 +92,9 @@ public:
//! returns daemon's blockchain height
Q_INVOKABLE quint64 daemonBlockChainHeight() const;
//! returns daemon's blockchain target height
Q_INVOKABLE quint64 daemonBlockChainTargetHeight() const;
//! refreshes the wallet
Q_INVOKABLE bool refresh();
@@ -162,7 +165,7 @@ private:
mutable QTime m_daemonBlockChainHeightTime;
mutable quint64 m_daemonBlockChainHeight;
int m_daemonBlockChainHeightTtl;
mutable quint64 m_daemonBlockChainTargetHeight;
};