File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1631,8 +1631,14 @@ bool AppInitMain(InitInterfaces& interfaces)
1631
1631
1632
1632
// ********************************************************* Step 11: import blocks
1633
1633
1634
- if (!CheckDiskSpace () && !CheckDiskSpace (0 , true ))
1634
+ if (!CheckDiskSpace (/* additional_bytes */ 0 , /* blocks_dir */ false )) {
1635
+ InitError (strprintf (_ (" Error: Disk space is low for %s" ), GetDataDir ()));
1635
1636
return false ;
1637
+ }
1638
+ if (!CheckDiskSpace (/* additional_bytes */ 0 , /* blocks_dir */ true )) {
1639
+ InitError (strprintf (_ (" Error: Disk space is low for %s" ), GetBlocksDir ()));
1640
+ return false ;
1641
+ }
1636
1642
1637
1643
// Either install a handler to notify us when genesis activates, or set fHaveGenesis directly.
1638
1644
// No locking, as this happens before any background thread is started.
You can’t perform that action at this time.
0 commit comments