diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-02-18 18:17:33 +0100 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-05-10 19:07:44 +0200 |
commit | 18e5ba7c8002bcd473ee29ce4b5bfc56df6142a4 (patch) | |
tree | cf11cb6570d968c9cb921df20786277716d6a22c /src/kernel | |
parent | 02a0899527ba3d31329e56c791c9dbf36075bb84 (diff) |
refactor, blockstorage: Replace blocksdir arg
Add a blocks_dir field to the BlockManager options. Move functions
relying on the global gArgs to get the blocks_dir into the BlockManager
class.
This should eventually allow users of the BlockManager to not rely on
the global Args and instead pass in their own options.
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/blockmanager_opts.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/blockmanager_opts.h b/src/kernel/blockmanager_opts.h index 6fa9ddd8c9..608a852836 100644 --- a/src/kernel/blockmanager_opts.h +++ b/src/kernel/blockmanager_opts.h @@ -5,6 +5,8 @@ #ifndef BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H #define BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H +#include <util/fs.h> + #include <cstdint> class CChainParams; @@ -19,6 +21,7 @@ struct BlockManagerOpts { const CChainParams& chainparams; uint64_t prune_target{0}; bool fast_prune{false}; + const fs::path blocks_dir; }; } // namespace kernel |