The synchronization progress bar now compares the amount of total blocks to amount of blocks downloaded at application start-up. Could be probably implemented better.

This commit is contained in:
Janne Pulkkinen
2011-09-10 12:43:45 +03:00
committed by Wladimir J. van der Laan
parent 9b9e2f1748
commit 78b3bf56f7
3 changed files with 14 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ public:
int getNumConnections() const;
int getNumBlocks() const;
int getNumBlocksAtStartup();
QDateTime getLastBlockDate() const;
@@ -41,6 +42,8 @@ private:
int cachedNumConnections;
int cachedNumBlocks;
int numBlocksAtStartup;
signals:
void numConnectionsChanged(int count);
void numBlocksChanged(int count);