Fix bytecoin folder creation on startup
This commit is contained in:
parent
198323aaf2
commit
69a770823e
2 changed files with 6 additions and 1 deletions
|
@ -207,6 +207,11 @@ uint64_t blockchain_storage::get_current_blockchain_height() {
|
|||
|
||||
bool blockchain_storage::init(const std::string& config_folder) {
|
||||
CRITICAL_REGION_LOCAL(m_blockchain_lock);
|
||||
if (!tools::create_directories_if_necessary(config_folder)) {
|
||||
LOG_ERROR("Failed to create data directory: " << m_config_folder);
|
||||
return false;
|
||||
}
|
||||
|
||||
m_config_folder = config_folder;
|
||||
LOG_PRINT_L0("Loading blockchain...");
|
||||
if (!m_blocks.open(appendPath(config_folder, "blocks.dat"), appendPath(config_folder, "blockindexes.dat"), 1024)) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#define BUILD_COMMIT_ID "@VERSION@"
|
||||
#define PROJECT_VERSION "0.8.10"
|
||||
#define PROJECT_VERSION_BUILD_NO "65"
|
||||
#define PROJECT_VERSION_BUILD_NO "71"
|
||||
#define PROJECT_VERSION_LONG PROJECT_VERSION "." PROJECT_VERSION_BUILD_NO "(" BUILD_COMMIT_ID ")"
|
||||
|
|
Loading…
Reference in a new issue