-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add reindex_chainstate action (#147)
* add reindex_chainstate action * fix typo * fix action id build error * Copy reindex_chainstate.sh into container * Commas, phrasing * typo correction --------- Co-authored-by: gStart9 <[email protected]>
- Loading branch information
1 parent
b869f08
commit 509274a
Showing
4 changed files
with
43 additions
and
3 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
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,20 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
touch /root/.bitcoin/requires.reindex_chainstate | ||
action_result_running=" { | ||
\"version\": \"0\", | ||
\"message\": \"Bitcoin Core restarting in reindex chainstate mode\", | ||
\"value\": null, | ||
\"copyable\": false, | ||
\"qr\": false | ||
}" | ||
action_result_stopped=" { | ||
\"version\": \"0\", | ||
\"message\": \"Bitcoin Core will reindex the chainstate the next time the service is started\", | ||
\"value\": null, | ||
\"copyable\": false, | ||
\"qr\": false | ||
}" | ||
bitcoin-cli -rpcconnect=bitcoind.embassy stop >/dev/null 2>/dev/null && echo $action_result_running || echo $action_result_stopped |
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
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