aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authorgavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-11-22 15:53:20 +0000
committergavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-11-22 15:53:20 +0000
commite4ff4e6898d378b1a3e83791034a7af455fde3ab (patch)
tree339254cbc95cee74dba7da48d255e4989a6097c6 /db.h
parent298a7714943dc3f1ebc582ed2426d3b71fb68466 (diff)
downloadbitcoin-e4ff4e6898d378b1a3e83791034a7af455fde3ab.tar.xz
Depracate "label" API, replacing with account
New RPC methods: move, sendfrom Change to getbalance (now takes optional [account] argument) Renamed methods with "label" in their names. sendtoaddress returns hexadecimal transaction ID instead of "sent". git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@188 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'db.h')
-rw-r--r--db.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/db.h b/db.h
index a0054aa138..df48699e91 100644
--- a/db.h
+++ b/db.h
@@ -11,6 +11,8 @@ class CUser;
class CReview;
class CAddress;
class CWalletTx;
+class CAccount;
+class CAccountingEntry;
extern map<string, string> mapAddressBook;
extern CCriticalSection cs_mapAddressBook;
@@ -341,7 +343,9 @@ public:
class CWalletDB : public CDB
{
public:
- CWalletDB(const char* pszMode="r+") : CDB("wallet.dat", pszMode) { }
+ CWalletDB(const char* pszMode="r+") : CDB("wallet.dat", pszMode)
+ {
+ }
private:
CWalletDB(const CWalletDB&);
void operator=(const CWalletDB&);
@@ -425,6 +429,11 @@ public:
return Write(make_pair(string("setting"), strKey), value);
}
+ bool ReadAccount(const string& strAccount, CAccount& account);
+ bool WriteAccount(const string& strAccount, const CAccount& account);
+ bool WriteAccountingEntry(const string& strAccount, const CAccountingEntry& acentry);
+ int64 GetAccountCreditDebit(const string& strAccount);
+
bool LoadWallet();
protected:
void ReserveKeyFromKeyPool(int64& nIndex, CKeyPool& keypool);