Skip to content

Commit d2b7e88

Browse files
MarcoFalkejonspock
authored andcommitted
Merge #13662: Explain when reindex-chainstate can be used instead of reindex
Summary: 65a449f8e3 Explain when reindex-chainstate can be used instead of reindex (Sjors Provoost) Pull request description: Save users from having to Google this: https://bitcoin.stackexchange.com/a/60711 Tree-SHA512: 3128565d037c77265a2ecf3bce137b8d27740f513802a4e683be06f21a75b82ee6cc22eb903181c4f438a2990cb682ce1d076f4d3af33d5aaa79b783a9f664b1 Backport of Core PR13662 bitcoin/bitcoin#13662 Test Plan: make check ./bitcoind --help Verify help test for `-reindex-chainstate`. Reviewers: deadalnix, Fabien, jasonbcox, O1 Bitcoin ABC, #bitcoin_abc Reviewed By: Fabien, O1 Bitcoin ABC, #bitcoin_abc Differential Revision: https://reviews.bitcoinabc.org/D4741
1 parent e27719d commit d2b7e88

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/init.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,10 @@ void SetupServerArgs() {
512512
MIN_DISK_SPACE_FOR_BLOCK_FILES / 1024 / 1024),
513513
false, OptionsCategory::OPTIONS);
514514
gArgs.AddArg("-reindex-chainstate",
515-
"Rebuild chain state from the currently indexed blocks", false,
516-
OptionsCategory::OPTIONS);
515+
"Rebuild chain state from the currently indexed blocks. When "
516+
"in pruning mode or if blocks on disk might be corrupted, use "
517+
"full -reindex instead.",
518+
false, OptionsCategory::OPTIONS);
517519
gArgs.AddArg(
518520
"-reindex",
519521
"Rebuild chain state and block index from the blk*.dat files on disk",

0 commit comments

Comments
 (0)