diff options
author | gavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-11-22 15:53:20 +0000 |
---|---|---|
committer | gavinandresen <gavinandresen@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-11-22 15:53:20 +0000 |
commit | e4ff4e6898d378b1a3e83791034a7af455fde3ab (patch) | |
tree | 339254cbc95cee74dba7da48d255e4989a6097c6 /db.h | |
parent | 298a7714943dc3f1ebc582ed2426d3b71fb68466 (diff) |
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.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); |