forked from HorizenOfficial/zencash-swing-wallet-ui
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from z-classic/develop
Develop
- Loading branch information
Showing
4 changed files
with
229 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
:: some commands found that can be a start for the clean.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 remains untouched. | ||
:: ------------------------------------------------------------------ | ||
@echo off | ||
setlocal | ||
:PROMPT | ||
ECHO "This operation will remove your current blockchain." | ||
ECHO "You will need to redownload it completely." | ||
ECHO "Only use this in case of a currupted chainstate." | ||
SET /P AREYOUSURE=Are you sure (Y/[N])? | ||
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END | ||
|
||
@RD /S /Q "C:\Users\%USERNAME%\AppData\Roaming\Zclassic\blocks" | ||
@RD /S /Q "C:\Users\%USERNAME%\AppData\Roaming\Zclassic\chainstate" | ||
|
||
:END | ||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!bin/sh | ||
# ------------------------------------------------------------------ | ||
# [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 remains untouched. | ||
# ------------------------------------------------------------------ | ||
|
||
echo "This operation will remove your current blockchain." | ||
echo "You will need to redownload it completely." | ||
echo "Only use this in case of a currupted chainstate." | ||
|
||
read -p "Are you sure you want to delete your entire ZCL blockchain? (y/N) " -n 1 -r | ||
echo # (optional) move to a new line | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
echo "deleting ~/Library/Application Support/Zclassic/blocks" | ||
rm -rf ~/Library/Application Support/Zclassic/blocks | ||
echo "deleting ~/Library/Application Support/Zclassic/chainstate" | ||
rm -rf ~/Library/Application Support/Zclassic/chainstate | ||
echo "success." | ||
else | ||
echo "Aborted." | ||
fi |
Oops, something went wrong.