Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | enum class DBErrors { | ||||
CORRUPT, | CORRUPT, | ||||
NONCRITICAL_ERROR, | NONCRITICAL_ERROR, | ||||
TOO_NEW, | TOO_NEW, | ||||
LOAD_FAIL, | LOAD_FAIL, | ||||
NEED_REWRITE | NEED_REWRITE | ||||
}; | }; | ||||
namespace DBKeys { | namespace DBKeys { | ||||
extern const std::string ACENTRY; | constexpr std::string_view ACENTRY = "acentry"; | ||||
extern const std::string ACTIVEEXTERNALSPK; | constexpr std::string_view ACTIVEEXTERNALSPK = "activeexternalspk"; | ||||
extern const std::string ACTIVEINTERNALSPK; | constexpr std::string_view ACTIVEINTERNALSPK = "activeinternalspk"; | ||||
extern const std::string BESTBLOCK; | constexpr std::string_view BESTBLOCK_NOMERKLE = "bestblock_nomerkle"; | ||||
extern const std::string BESTBLOCK_NOMERKLE; | constexpr std::string_view BESTBLOCK = "bestblock"; | ||||
extern const std::string CRYPTED_KEY; | constexpr std::string_view CRYPTED_KEY = "ckey"; | ||||
extern const std::string CSCRIPT; | constexpr std::string_view CSCRIPT = "cscript"; | ||||
extern const std::string DEFAULTKEY; | constexpr std::string_view DEFAULTKEY = "defaultkey"; | ||||
extern const std::string DESTDATA; | constexpr std::string_view DESTDATA = "destdata"; | ||||
extern const std::string FLAGS; | constexpr std::string_view FLAGS = "flags"; | ||||
extern const std::string HDCHAIN; | constexpr std::string_view HDCHAIN = "hdchain"; | ||||
extern const std::string KEY; | constexpr std::string_view KEYMETA = "keymeta"; | ||||
extern const std::string KEYMETA; | constexpr std::string_view KEY = "key"; | ||||
extern const std::string MASTER_KEY; | constexpr std::string_view MASTER_KEY = "mkey"; | ||||
extern const std::string MINVERSION; | constexpr std::string_view MINVERSION = "minversion"; | ||||
extern const std::string NAME; | constexpr std::string_view NAME = "name"; | ||||
extern const std::string OLD_KEY; | constexpr std::string_view OLD_KEY = "wkey"; | ||||
extern const std::string ORDERPOSNEXT; | constexpr std::string_view ORDERPOSNEXT = "orderposnext"; | ||||
extern const std::string POOL; | constexpr std::string_view POOL = "pool"; | ||||
extern const std::string PURPOSE; | constexpr std::string_view PURPOSE = "purpose"; | ||||
extern const std::string SETTINGS; | constexpr std::string_view SETTINGS = "settings"; | ||||
extern const std::string TX; | constexpr std::string_view TX = "tx"; | ||||
extern const std::string VERSION; | constexpr std::string_view VERSION = "version"; | ||||
extern const std::string WALLETDESCRIPTOR; | constexpr std::string_view WALLETDESCRIPTOR = "walletdescriptor"; | ||||
extern const std::string WALLETDESCRIPTORCACHE; | constexpr std::string_view WALLETDESCRIPTORCACHE = "walletdescriptorcache"; | ||||
extern const std::string WALLETDESCRIPTORCKEY; | constexpr std::string_view WALLETDESCRIPTORCKEY = "walletdescriptorckey"; | ||||
extern const std::string WALLETDESCRIPTORKEY; | constexpr std::string_view WALLETDESCRIPTORKEY = "walletdescriptorkey"; | ||||
extern const std::string WATCHMETA; | constexpr std::string_view WATCHMETA = "watchmeta"; | ||||
extern const std::string WATCHS; | constexpr std::string_view WATCHS = "watchs"; | ||||
} // namespace DBKeys | } // namespace DBKeys | ||||
/* simple HD chain data model */ | /* simple HD chain data model */ | ||||
class CHDChain { | class CHDChain { | ||||
public: | public: | ||||
uint32_t nExternalChainCounter; | uint32_t nExternalChainCounter; | ||||
uint32_t nInternalChainCounter; | uint32_t nInternalChainCounter; | ||||
//! seed hash160 | //! seed hash160 | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |