Display a "freshness" indicator instead of nr of blocks
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "headers.h"
|
||||
|
||||
#include <QTimer>
|
||||
#include <QDateTime>
|
||||
|
||||
ClientModel::ClientModel(CWallet *wallet, QObject *parent) :
|
||||
QObject(parent), wallet(wallet), optionsModel(0)
|
||||
@@ -30,6 +31,11 @@ int ClientModel::getNumBlocks() const
|
||||
return nBestHeight;
|
||||
}
|
||||
|
||||
QDateTime ClientModel::getLastBlockDate() const
|
||||
{
|
||||
return QDateTime::fromTime_t(pindexBest->GetBlockTime());
|
||||
}
|
||||
|
||||
void ClientModel::update()
|
||||
{
|
||||
// Plainly emit all signals for now. To be more efficient this should check
|
||||
|
||||
Reference in New Issue
Block a user