aboutsummaryrefslogtreecommitdiff
path: root/src/node/utxo_snapshot.h
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-05-04 23:19:58 +0200
committerTheCharlatan <seb.kung@gmail.com>2023-05-30 16:52:48 +0200
commit8789b11114b4bd6c7ee727dffbc75a6bdf20dd27 (patch)
treedb12cde890df6de06d2d8982b615f9fbcb02a22d /src/node/utxo_snapshot.h
parentef95be334f3aec671346372b64606e0fd390979a (diff)
downloadbitcoin-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.h2
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