Changeset View
Changeset View
Standalone View
Standalone View
src/qt/clientmodel.cpp
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
bool ClientModel::inInitialBlockDownload() const { | bool ClientModel::inInitialBlockDownload() const { | ||||
return IsInitialBlockDownload(); | return IsInitialBlockDownload(); | ||||
} | } | ||||
enum BlockSource ClientModel::getBlockSource() const { | enum BlockSource ClientModel::getBlockSource() const { | ||||
if (fReindex) | if (fReindex) | ||||
return BLOCK_SOURCE_REINDEX; | return BlockSource::REINDEX; | ||||
else if (fImporting) | else if (fImporting) | ||||
return BLOCK_SOURCE_DISK; | return BlockSource::DISK; | ||||
else if (getNumConnections() > 0) | else if (getNumConnections() > 0) | ||||
return BLOCK_SOURCE_NETWORK; | return BlockSource::NETWORK; | ||||
return BLOCK_SOURCE_NONE; | return BlockSource::NONE; | ||||
} | } | ||||
void ClientModel::setNetworkActive(bool active) { | void ClientModel::setNetworkActive(bool active) { | ||||
if (g_connman) { | if (g_connman) { | ||||
g_connman->SetNetworkActive(active); | g_connman->SetNetworkActive(active); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |