Skip to content

Commit

Permalink
refactor DeleteOldEthDir
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdeep sidhu committed Sep 27, 2021
1 parent 837b230 commit 0a3c2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,9 +1240,9 @@ void DeleteOldEthDir()
const fs::path p = gArgs.GetDataDirNet() / "ethereumtxroots";
const fs::path p1 = gArgs.GetDataDirNet() / "ethereumminttx";
if(fs::exists(p) && fs::is_directory(p))
fs::remove_all(gArgs.GetDataDirNet() / "ethereumtxroots");
fs::remove_all(p);
if(fs::exists(p1) && fs::is_directory(p1))
fs::remove_all(gArgs.GetDataDirNet() / "ethereumminttx");
fs::remove_all(p1);
}
void DeleteOldAssetDir()
{
Expand Down

0 comments on commit 0a3c2c9

Please sign in to comment.