Changeset View
Changeset View
Standalone View
Standalone View
src/node/chainstate.h
Show All 37 Lines | |||||
}; | }; | ||||
//! Chainstate load status. Simple applications can just check for the success | //! Chainstate load status. Simple applications can just check for the success | ||||
//! case, and treat other cases as errors. More complex applications may want to | //! case, and treat other cases as errors. More complex applications may want to | ||||
//! try reindexing in the generic failure case, and pass an interrupt callback | //! try reindexing in the generic failure case, and pass an interrupt callback | ||||
//! and exit cleanly in the interrupted case. | //! and exit cleanly in the interrupted case. | ||||
enum class ChainstateLoadStatus { | enum class ChainstateLoadStatus { | ||||
SUCCESS, | SUCCESS, | ||||
//! Generic failure which reindexing may fix | |||||
FAILURE, | FAILURE, | ||||
//! Fatal error which should not prompt to reindex | |||||
FAILURE_FATAL, | |||||
FAILURE_INCOMPATIBLE_DB, | FAILURE_INCOMPATIBLE_DB, | ||||
FAILURE_INSUFFICIENT_DBCACHE, | FAILURE_INSUFFICIENT_DBCACHE, | ||||
INTERRUPTED | INTERRUPTED | ||||
}; | }; | ||||
//! Chainstate load status code and optional error string. | //! Chainstate load status code and optional error string. | ||||
using ChainstateLoadResult = std::tuple<ChainstateLoadStatus, bilingual_str>; | using ChainstateLoadResult = std::tuple<ChainstateLoadStatus, bilingual_str>; | ||||
Show All 24 Lines |