X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fdb.h;h=a86c110b3f564f69e10dce3e8ca0193ebd71f6be;hb=0fa89d8e816807a621419495d7bdc6366979a0f0;hp=c8d46d8fe6fddcda0b99f2aca677ecfe3e1b6123;hpb=61e3c011f5506b4ebd0014e49ea8b61ae916d20d;p=novacoin.git diff --git a/src/db.h b/src/db.h index c8d46d8..a86c110 100644 --- a/src/db.h +++ b/src/db.h @@ -342,6 +342,13 @@ public: +enum DBErrors +{ + DB_LOAD_OK, + DB_CORRUPT, + DB_TOO_NEW +}; + class CWalletDB : public CDB { public: @@ -469,7 +476,7 @@ public: int64 GetAccountCreditDebit(const std::string& strAccount); void ListAccountCreditDebit(const std::string& strAccount, std::list& acentries); - bool LoadWallet(CWallet* pwallet); + int LoadWallet(CWallet* pwallet); }; #endif