mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 05:34:57 +01:00
Remove reindex special case from the progress bar label
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user