diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-05-04 23:19:58 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-05-30 16:52:48 +0200 |
commit | 8789b11114b4bd6c7ee727dffbc75a6bdf20dd27 (patch) | |
tree | db12cde890df6de06d2d8982b615f9fbcb02a22d /src/node/utxo_snapshot.h | |
parent | ef95be334f3aec671346372b64606e0fd390979a (diff) | |
download | bitcoin-8789b11114b4bd6c7ee727dffbc75a6bdf20dd27.tar.xz |
refactor: Add path argument to FindSnapshotChainstateDir
Remove access to the global gArgs for getting the directory in
utxo_snapshot.
This is done in the context of the libbitcoinkernel project, wherein
reliance of libbitcoinkernel code on the global gArgs is incrementally
removed.
Diffstat (limited to 'src/node/utxo_snapshot.h')
-rw-r--r-- | src/node/utxo_snapshot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/utxo_snapshot.h b/src/node/utxo_snapshot.h index 44ddd77dc3..a6dd3f3f13 100644 --- a/src/node/utxo_snapshot.h +++ b/src/node/utxo_snapshot.h @@ -67,7 +67,7 @@ constexpr std::string_view SNAPSHOT_CHAINSTATE_SUFFIX = "_snapshot"; //! Return a path to the snapshot-based chainstate dir, if one exists. -std::optional<fs::path> FindSnapshotChainstateDir(); +std::optional<fs::path> FindSnapshotChainstateDir(const fs::path& data_dir); } // namespace node |