|
|
@ -29,8 +29,9 @@ ClientModel::ClientModel(OptionsModel *optionsModel, QObject *parent) :
|
|
|
|
optionsModel(optionsModel),
|
|
|
|
optionsModel(optionsModel),
|
|
|
|
peerTableModel(0),
|
|
|
|
peerTableModel(0),
|
|
|
|
cachedNumBlocks(0),
|
|
|
|
cachedNumBlocks(0),
|
|
|
|
cachedReindexing(0), cachedImporting(0),
|
|
|
|
cachedReindexing(0),
|
|
|
|
numBlocksAtStartup(-1), pollTimer(0)
|
|
|
|
cachedImporting(0),
|
|
|
|
|
|
|
|
pollTimer(0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
peerTableModel = new PeerTableModel(this);
|
|
|
|
peerTableModel = new PeerTableModel(this);
|
|
|
|
pollTimer = new QTimer(this);
|
|
|
|
pollTimer = new QTimer(this);
|
|
|
@ -65,12 +66,6 @@ int ClientModel::getNumBlocks() const
|
|
|
|
return chainActive.Height();
|
|
|
|
return chainActive.Height();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int ClientModel::getNumBlocksAtStartup()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (numBlocksAtStartup == -1) numBlocksAtStartup = getNumBlocks();
|
|
|
|
|
|
|
|
return numBlocksAtStartup;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
quint64 ClientModel::getTotalBytesRecv() const
|
|
|
|
quint64 ClientModel::getTotalBytesRecv() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return CNode::GetTotalBytesRecv();
|
|
|
|
return CNode::GetTotalBytesRecv();
|
|
|
|