File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ std::string Http::GetLatestVersionResponse()
301
301
302
302
void Http::DownloadSnapshot ()
303
303
{
304
- std::string url = GetArg (" -snapshoturl" , " https://download .gridcoin.us/download/downloadstake/signed /snapshot.zip" );
304
+ std::string url = GetArg (" -snapshoturl" , " https://snapshot .gridcoin.us/snapshot.zip" );
305
305
306
306
fs::path destination = GetDataDir () / " snapshot.zip" ;
307
307
@@ -383,7 +383,7 @@ std::string Http::GetSnapshotSHA256()
383
383
{
384
384
std::string buffer;
385
385
std::string header;
386
- std::string url = GetArg (" -snapshotsha256url" , " https://download .gridcoin.us/download/downloadstake/signed /snapshot.zip.sha256" );
386
+ std::string url = GetArg (" -snapshotsha256url" , " https://snapshot .gridcoin.us/snapshot.zip.sha256" );
387
387
388
388
struct curl_slist * headers = NULL ;
389
389
headers = curl_slist_append (headers, " Accept: */*" );
Original file line number Diff line number Diff line change @@ -361,14 +361,22 @@ bool Upgrade::CleanupBlockchainData()
361
361
{
362
362
if (fs::is_directory (Iter->path ()))
363
363
{
364
- size_t DirLoc = Iter->path ().string ().find (" txleveldb" );
365
-
366
- if (DirLoc != std::string::npos)
367
- if (!fs::remove_all (*Iter))
368
- return false ;
364
+ for (const auto & path_segment : Iter->path ())
365
+ {
366
+ if (path_segment.string () == " txleveldb" )
367
+ {
368
+ if (!fs::remove_all (*Iter)) return false ;
369
+ }
370
+ }
369
371
372
+ for (const auto & path_segment : Iter->path ())
373
+ {
374
+ if (path_segment.string () == " accrual" )
375
+ {
376
+ if (!fs::remove_all (*Iter)) return false ;
377
+ }
378
+ }
370
379
continue ;
371
-
372
380
}
373
381
374
382
else if (fs::is_regular_file (*Iter))
You can’t perform that action at this time.
0 commit comments