clarify function signature (GetNumBlocksOfPeers) and use number of 'frozen' blocks as initial value for number of peer blocks
This commit is contained in:
@@ -346,7 +346,7 @@ void BitcoinGUI::setNumConnections(int count)
|
||||
void BitcoinGUI::setNumBlocks(int count)
|
||||
{
|
||||
int initTotal = clientModel->getNumBlocksAtStartup();
|
||||
int total = clientModel->getTotalBlocksEstimate();
|
||||
int total = clientModel->getNumBlocksOfPeers();
|
||||
QString tooltip;
|
||||
|
||||
if(count < total)
|
||||
|
||||
@@ -67,9 +67,9 @@ bool ClientModel::inInitialBlockDownload() const
|
||||
return IsInitialBlockDownload();
|
||||
}
|
||||
|
||||
int ClientModel::getTotalBlocksEstimate() const
|
||||
int ClientModel::getNumBlocksOfPeers() const
|
||||
{
|
||||
return GetMaxBlocksOfOtherNodes();
|
||||
return GetNumBlocksOfPeers();
|
||||
}
|
||||
|
||||
OptionsModel *ClientModel::getOptionsModel()
|
||||
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
// Return true if core is doing initial block download
|
||||
bool inInitialBlockDownload() const;
|
||||
// Return conservative estimate of total number of blocks, or 0 if unknown
|
||||
int getTotalBlocksEstimate() const;
|
||||
int getNumBlocksOfPeers() const;
|
||||
|
||||
QString formatFullVersion() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user