refactor: Use TranslateFn type consistently

The type was introduced in the previous commit.
This commit is contained in:
MarcoFalke
2025-01-15 12:15:40 +01:00
parent eeee6cf2ff
commit fa1d5acb8d
8 changed files with 9 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ using node::LoadChainstate;
using node::RegenerateCommitments;
using node::VerifyLoadedChainstate;
const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr;
const TranslateFn G_TRANSLATION_FUN{nullptr};
constexpr inline auto TEST_DIR_PATH_ELEMENT{"test_common bitcoin"}; // Includes a space to catch possible path escape issues.
/** Random context to get unique temp data dirs. Separate from m_rng, which can be seeded from a const env var */