diff options
author | fanquake <fanquake@gmail.com> | 2022-09-15 10:45:07 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-01-05 09:05:14 +0000 |
commit | 282019cd3ddb060db350654e6f855f7ea37e0d34 (patch) | |
tree | 0d4cf47437572b3d80a6275392d291701ec14f3f /src/txdb.h | |
parent | 296e88225096125b08665b97715c5b8ebb1d28ec (diff) |
refactor: add kernel/cs_main.*
Co-authored-by: Anthony Towns <aj@erisian.com.au>
Diffstat (limited to 'src/txdb.h')
-rw-r--r-- | src/txdb.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/txdb.h b/src/txdb.h index 0570355016..5a409d7dcc 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -8,6 +8,7 @@ #include <coins.h> #include <dbwrapper.h> +#include <kernel/cs_main.h> #include <sync.h> #include <fs.h> @@ -44,9 +45,6 @@ static const int64_t max_filter_index_cache = 1024; //! Max memory allocated to coin DB specific cache (MiB) static const int64_t nMaxCoinsDBCache = 8; -// Actually declared in validation.cpp; can't include because of circular dependency. -extern RecursiveMutex cs_main; - /** CCoinsView backed by the coin database (chainstate/) */ class CCoinsViewDB final : public CCoinsView { |