forked from z-classic/zclassic-full-node-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean-blockchain.bat
More file actions
27 lines (24 loc) · 987 Bytes
/
Copy pathclean-blockchain.bat
File metadata and controls
27 lines (24 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
::
:: clean-blockchain.bat
::
:: ------------------------------------------------------------------
:: [Niels Buekers] Clean blockchain folders
:: Deletes existing blockchain from user's default
:: installation directory. Should only be used in
:: case of a corrupted chainstate. User will need
:: to redownload entire blockchain if he proceeds.
::
:: 'wallet', 'peers', and 'config' remain untouched.
:: ------------------------------------------------------------------
@echo off
setlocal
:PROMPT
ECHO "This operation will delete your current blockchain - blocks and chainstate."
ECHO "You will need to re-download it completely."
ECHO "! Only use this in case of a corrupted chainstate."
SET /P AREYOUSURE=Are you sure (Y/[N])?
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
@RD /S /Q "C:\Users\%USERNAME%\AppData\Roaming\BitcoinPrivate\blocks"
@RD /S /Q "C:\Users\%USERNAME%\AppData\Roaming\BitcoinPrivate\chainstate"
:END
endlocal