|
|
@ -114,13 +114,13 @@ void dev::eth::upgradeDatabase(std::string const& _basePath, h256 const& _genesi |
|
|
|
if (!fs::exists(chainPath + "/blocks")) |
|
|
|
{ |
|
|
|
fs::create_directories(chainPath); |
|
|
|
fs::permissions(chainPath, fs::owner_all); |
|
|
|
DEV_IGNORE_EXCEPTIONS(fs::permissions(chainPath, fs::owner_all)); |
|
|
|
fs::rename(path + "/blocks", chainPath + "/blocks"); |
|
|
|
|
|
|
|
if (!fs::exists(extrasPath + "/extras")) |
|
|
|
{ |
|
|
|
fs::create_directories(extrasPath); |
|
|
|
fs::permissions(extrasPath, fs::owner_all); |
|
|
|
DEV_IGNORE_EXCEPTIONS(fs::permissions(extrasPath, fs::owner_all)); |
|
|
|
fs::rename(path + "/details", extrasPath + "/extras"); |
|
|
|
fs::rename(path + "/state", extrasPath + "/state"); |
|
|
|
writeFile(extrasPath + "/minor", rlp(minorProtocolVersion)); |
|
|
|