diff options
author | Carl Dong <contact@carldong.me> | 2022-07-13 14:15:11 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-07-14 08:27:54 -0400 |
commit | 38377002671d038aadb01e1521ea95c97838cedc (patch) | |
tree | 8cbe4475ff40d15d94b8be49cdfa6f1662e06bd6 | |
parent | 062b9db0ccb6af8bfbaa2b29132408cda9991b40 (diff) |
Move ChainstateManagerOpts into kernel:: namespace
It should have been there in the first place.
-rw-r--r-- | src/kernel/chainstatemanager_opts.h | 4 | ||||
-rw-r--r-- | src/validation.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/chainstatemanager_opts.h b/src/kernel/chainstatemanager_opts.h index 575d94e2e9..510a1f9edc 100644 --- a/src/kernel/chainstatemanager_opts.h +++ b/src/kernel/chainstatemanager_opts.h @@ -10,6 +10,8 @@ class CChainParams; +namespace kernel { + /** * An options struct for `ChainstateManager`, more ergonomically referred to as * `ChainstateManager::Options` due to the using-declaration in @@ -20,4 +22,6 @@ struct ChainstateManagerOpts { const std::function<int64_t()> adjusted_time_callback{nullptr}; }; +} // namespace kernel + #endif // BITCOIN_KERNEL_CHAINSTATEMANAGER_OPTS_H diff --git a/src/validation.h b/src/validation.h index 0e27e117fa..aa9fcf9f2d 100644 --- a/src/validation.h +++ b/src/validation.h @@ -834,7 +834,7 @@ private: friend CChainState; public: - using Options = ChainstateManagerOpts; + using Options = kernel::ChainstateManagerOpts; explicit ChainstateManager(const Options& opts) : m_chainparams{opts.chainparams}, |