Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,284 Lines • ▼ Show 20 Lines | #endif | ||||
if (fRequestShutdown) { | if (fRequestShutdown) { | ||||
LogPrintf("Shutdown requested. Exiting.\n"); | LogPrintf("Shutdown requested. Exiting.\n"); | ||||
return false; | return false; | ||||
} | } | ||||
if (fLoaded) { | if (fLoaded) { | ||||
LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart); | LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart); | ||||
} | } | ||||
// Encoded addresses using cashaddr instead of base58 | // Encoded addresses using cashaddr instead of base58. | ||||
// Activates by default on Jan, 14 | // We do this by default to avoid confusion with BTC addresses. | ||||
config.SetCashAddrEncoding( | config.SetCashAddrEncoding(gArgs.GetBoolArg("-usecashaddr", true)); | ||||
gArgs.GetBoolArg("-usecashaddr", GetAdjustedTime() > 1515900000)); | |||||
// Step 8: load indexers | // Step 8: load indexers | ||||
if (gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) { | if (gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) { | ||||
g_txindex = std::make_unique<TxIndex>(nTxIndexCache, false, fReindex); | g_txindex = std::make_unique<TxIndex>(nTxIndexCache, false, fReindex); | ||||
g_txindex->Start(); | g_txindex->Start(); | ||||
} | } | ||||
// Step 9: load wallet | // Step 9: load wallet | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |