Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | public: | ||||
const CBlockIndex *tip; | const CBlockIndex *tip; | ||||
{ | { | ||||
LOCK(::cs_main); | LOCK(::cs_main); | ||||
tip = ::ChainActive().Tip(); | tip = ::ChainActive().Tip(); | ||||
} | } | ||||
return GuessVerificationProgress(Params().TxData(), tip); | return GuessVerificationProgress(Params().TxData(), tip); | ||||
} | } | ||||
bool isInitialBlockDownload() override { | bool isInitialBlockDownload() override { | ||||
return IsInitialBlockDownload(); | return ::ChainstateActive().IsInitialBlockDownload(); | ||||
} | } | ||||
bool getReindex() override { return ::fReindex; } | bool getReindex() override { return ::fReindex; } | ||||
bool getImporting() override { return ::fImporting; } | bool getImporting() override { return ::fImporting; } | ||||
void setNetworkActive(bool active) override { | void setNetworkActive(bool active) override { | ||||
if (g_connman) { | if (g_connman) { | ||||
g_connman->SetNetworkActive(active); | g_connman->SetNetworkActive(active); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |