aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-07-05 03:06:19 +0200
committerMatt Corallo <matt@bluematt.me>2011-07-05 18:36:01 +0200
commit7ec552676c66488fe00fb503d02ec4a389a715b7 (patch)
tree6791d8dd85e2aaa82ee7b2396b123716ccd093f2 /src/db.h
parent9390431ce49893cbdf23846edb4bdf72b3d4e830 (diff)
Add minversion to wallet.
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/db.h b/src/db.h
index b89b34e009..b910111276 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:
@@ -450,7 +457,7 @@ public:
int64 GetAccountCreditDebit(const std::string& strAccount);
void ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& acentries);
- bool LoadWallet(CWallet* pwallet);
+ int LoadWallet(CWallet* pwallet);
};
#endif