Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
| Show First 20 Lines • Show All 1,791 Lines • ▼ Show 20 Lines | if (gArgs.GetBoolArg("-server", false)) { | ||||
| _("Unable to start HTTP server. See debug log for details.")); | _("Unable to start HTTP server. See debug log for details.")); | ||||
| } | } | ||||
| } | } | ||||
| int64_t nStart; | int64_t nStart; | ||||
| // Step 5: verify wallet database integrity | // Step 5: verify wallet database integrity | ||||
| #ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
| if (!CWallet::Verify(chainparams)) { | if (!CWallet::Verify(config)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| #endif | #endif | ||||
| // Step 6: network initialization | // Step 6: network initialization | ||||
| // Note that we absolutely cannot open any actual connections | // Note that we absolutely cannot open any actual connections | ||||
| // until the very end ("start node") as the UTXO/block state | // until the very end ("start node") as the UTXO/block state | ||||
| // is not yet setup and may end up being set up twice if we | // is not yet setup and may end up being set up twice if we | ||||
| ▲ Show 20 Lines • Show All 382 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 wallet | // Step 8: load wallet | ||||
| #ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
| if (!CWallet::InitLoadWallet(chainparams)) return false; | if (!CWallet::InitLoadWallet(config)) return false; | ||||
| #else | #else | ||||
| LogPrintf("No wallet support compiled in!\n"); | LogPrintf("No wallet support compiled in!\n"); | ||||
| #endif | #endif | ||||
| // Step 9: data directory maintenance | // Step 9: data directory maintenance | ||||
| // if pruning, unset the service bit and perform the initial blockstore | // if pruning, unset the service bit and perform the initial blockstore | ||||
| // prune after any wallet rescanning has taken place. | // prune after any wallet rescanning has taken place. | ||||
| ▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines | |||||