Remove reindex special case from the progress bar label

This commit is contained in:
MarcoFalke
2023-01-17 16:46:33 +01:00
parent 5a80086ec2
commit faff2ba4f8
5 changed files with 10 additions and 23 deletions

View File

@@ -146,15 +146,10 @@ uint256 ClientModel::getBestBlockHash()
return m_cached_tip_blocks;
}
enum BlockSource ClientModel::getBlockSource() const
BlockSource ClientModel::getBlockSource() const
{
if (m_node.getReindex())
return BlockSource::REINDEX;
else if (m_node.getImporting())
return BlockSource::DISK;
else if (getNumConnections() > 0)
return BlockSource::NETWORK;
if (m_node.isLoadingBlocks()) return BlockSource::DISK;
if (getNumConnections() > 0) return BlockSource::NETWORK;
return BlockSource::NONE;
}