Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,295 Lines • ▼ Show 20 Lines | #endif | ||||
// Encoded addresses using cashaddr instead of base58 | // Encoded addresses using cashaddr instead of base58 | ||||
// Activates by default on Jan, 14 | // Activates by default on Jan, 14 | ||||
config.SetCashAddrEncoding( | config.SetCashAddrEncoding( | ||||
gArgs.GetBoolArg("-usecashaddr", GetAdjustedTime() > 1515900000)); | 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)) { | ||||
auto txindex_db = | g_txindex = std::make_unique<TxIndex>(nTxIndexCache, false, fReindex); | ||||
std::make_unique<TxIndexDB>(nTxIndexCache, false, fReindex); | |||||
g_txindex = std::make_unique<TxIndex>(std::move(txindex_db)); | |||||
g_txindex->Start(); | g_txindex->Start(); | ||||
} | } | ||||
// Step 9: load wallet | // Step 9: load wallet | ||||
if (!g_wallet_init_interface.Open(chainparams)) { | if (!g_wallet_init_interface.Open(chainparams)) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |