forked from Public/monero-gui
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:
committed by
Ilya Kitaev
parent
6a50951940
commit
af70c81082
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user