diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2024-06-07 12:12:34 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2024-06-07 19:17:11 +0200 |
commit | 804f09dfa116300914e2aeef05ed9710dd504e8c (patch) | |
tree | 9dccb9bfec7e6a08dd6036e29b60b958bec67db6 /src/kernel | |
parent | e17255322378076edce3ef6f06cd36ca58d2e236 (diff) |
kernel: Add less confusing reindex options
Drop confusing kernel options:
BlockManagerOpts::reindex
ChainstateLoadOptions::reindex
ChainstateLoadOptions::reindex_chainstate
Replacing them with more straightforward options:
ChainstateLoadOptions::wipe_block_tree_db
ChainstateLoadOptions::wipe_chainstate_db
Having two options called "reindex" which did slightly different things
was needlessly confusing (one option wiped the block tree database, and
the other caused block files to be rescanned). Also the previous set of
options did not allow rebuilding the block database without also
rebuilding the chainstate database, when it should be possible to do
those independently.
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/blockmanager_opts.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/kernel/blockmanager_opts.h b/src/kernel/blockmanager_opts.h index 16072b669b..deeba7e318 100644 --- a/src/kernel/blockmanager_opts.h +++ b/src/kernel/blockmanager_opts.h @@ -24,7 +24,6 @@ struct BlockManagerOpts { bool fast_prune{false}; const fs::path blocks_dir; Notifications& notifications; - bool reindex{false}; }; } // namespace kernel |