0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

Move ChainstateManagerOpts into kernel:: namespace

It should have been there in the first place.
This commit is contained in:
Carl Dong 2022-07-13 14:15:11 -04:00
parent 062b9db0cc
commit 3837700267
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -834,7 +834,7 @@ private:
friend CChainState;
public:
using Options = ChainstateManagerOpts;
using Options = kernel::ChainstateManagerOpts;
explicit ChainstateManager(const Options& opts)
: m_chainparams{opts.chainparams},