Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show All 31 Lines | |||||
#include <script/script_error.h> | #include <script/script_error.h> | ||||
#include <script/script_metrics.h> | #include <script/script_metrics.h> | ||||
#include <shutdown.h> | #include <shutdown.h> | ||||
#include <sync.h> | #include <sync.h> | ||||
#include <txdb.h> | #include <txdb.h> | ||||
#include <txmempool.h> // For CTxMemPool::cs | #include <txmempool.h> // For CTxMemPool::cs | ||||
#include <uint256.h> | #include <uint256.h> | ||||
#include <util/check.h> | #include <util/check.h> | ||||
#include <util/result.h> | |||||
#include <util/translation.h> | #include <util/translation.h> | ||||
#include <atomic> | #include <atomic> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <map> | #include <map> | ||||
#include <memory> | #include <memory> | ||||
#include <optional> | #include <optional> | ||||
#include <set> | #include <set> | ||||
▲ Show 20 Lines • Show All 1,033 Lines • ▼ Show 20 Lines | private: | ||||
std::chrono::microseconds m_last_write{0}; | std::chrono::microseconds m_last_write{0}; | ||||
std::chrono::microseconds m_last_flush{0}; | std::chrono::microseconds m_last_flush{0}; | ||||
/** | /** | ||||
* In case of an invalid snapshot, rename the coins leveldb directory so | * In case of an invalid snapshot, rename the coins leveldb directory so | ||||
* that it can be examined for issue diagnosis. | * that it can be examined for issue diagnosis. | ||||
*/ | */ | ||||
void InvalidateCoinsDBOnDisk() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | [[nodiscard]] util::Result<void> InvalidateCoinsDBOnDisk() | ||||
EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | |||||
friend ChainstateManager; | friend ChainstateManager; | ||||
}; | }; | ||||
enum class SnapshotCompletionResult { | enum class SnapshotCompletionResult { | ||||
SUCCESS, | SUCCESS, | ||||
SKIPPED, | SKIPPED, | ||||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |