From 8789b11114b4bd6c7ee727dffbc75a6bdf20dd27 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Thu, 4 May 2023 23:19:58 +0200 Subject: 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. --- src/node/utxo_snapshot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node/utxo_snapshot.h') 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 FindSnapshotChainstateDir(); +std::optional FindSnapshotChainstateDir(const fs::path& data_dir); } // namespace node -- cgit v1.2.3