Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,125 Lines • ▼ Show 20 Lines | #endif | ||||
std::vector<boost::filesystem::path> vImportFiles; | std::vector<boost::filesystem::path> vImportFiles; | ||||
if (mapMultiArgs.count("-loadblock")) { | if (mapMultiArgs.count("-loadblock")) { | ||||
for (const std::string &strFile : mapMultiArgs.at("-loadblock")) { | for (const std::string &strFile : mapMultiArgs.at("-loadblock")) { | ||||
vImportFiles.push_back(strFile); | vImportFiles.push_back(strFile); | ||||
} | } | ||||
} | } | ||||
threadGroup.create_thread( | threadGroup.create_thread( | ||||
boost::bind(&ThreadImport, boost::ref(config), vImportFiles)); | boost::bind(&ThreadImport, std::ref(config), vImportFiles)); | ||||
// Wait for genesis block to be processed | // Wait for genesis block to be processed | ||||
{ | { | ||||
boost::unique_lock<boost::mutex> lock(cs_GenesisWait); | boost::unique_lock<boost::mutex> lock(cs_GenesisWait); | ||||
while (!fHaveGenesis) { | while (!fHaveGenesis) { | ||||
condvar_GenesisWait.wait(lock); | condvar_GenesisWait.wait(lock); | ||||
} | } | ||||
uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); | uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |