Browse Source

Merge pull request #3643

d54e819 Log warnings when bootstrap files are specified but cannot be opened (Wladimir J. van der Laan)
pull/1/head
Wladimir J. van der Laan 9 years ago
parent
commit
129429dd8f
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/init.cpp

6
src/init.cpp

@ -338,6 +338,8 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles) @@ -338,6 +338,8 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
LogPrintf("Importing bootstrap.dat...\n");
LoadExternalBlockFile(file);
RenameOver(pathBootstrap, pathBootstrapOld);
} else {
LogPrintf("Warning: Could not open bootstrap file %s\n", pathBootstrap.string());
}
}
@ -346,8 +348,10 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles) @@ -346,8 +348,10 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
FILE *file = fopen(path.string().c_str(), "rb");
if (file) {
CImportingNow imp;
LogPrintf("Importing %s...\n", path.string());
LogPrintf("Importing blocks file %s...\n", path.string());
LoadExternalBlockFile(file);
} else {
LogPrintf("Warning: Could not open blocks file %s\n", path.string());
}
}
}

Loading…
Cancel
Save