Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,435 Lines • ▼ Show 20 Lines | #endif | ||||
assert(!node.chainman); | assert(!node.chainman); | ||||
int check_ratio = std::min<int>( | int check_ratio = std::min<int>( | ||||
std::max<int>( | std::max<int>( | ||||
args.GetIntArg("-checkmempool", | args.GetIntArg("-checkmempool", | ||||
chainparams.DefaultConsistencyChecks() ? 1 : 0), | chainparams.DefaultConsistencyChecks() ? 1 : 0), | ||||
0), | 0), | ||||
1000000); | 1000000); | ||||
bool fLoaded = false; | for (bool fLoaded = false; !fLoaded && !ShutdownRequested();) { | ||||
while (!fLoaded && !ShutdownRequested()) { | |||||
node.mempool = std::make_unique<CTxMemPool>(check_ratio); | node.mempool = std::make_unique<CTxMemPool>(check_ratio); | ||||
node.chainman = std::make_unique<ChainstateManager>(); | node.chainman = std::make_unique<ChainstateManager>(); | ||||
ChainstateManager &chainman = *node.chainman; | ChainstateManager &chainman = *node.chainman; | ||||
const bool fReset = fReindex; | const bool fReset = fReindex; | ||||
bilingual_str strLoadError; | bilingual_str strLoadError; | ||||
▲ Show 20 Lines • Show All 520 Lines • Show Last 20 Lines |