diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-12-21 22:33:19 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-12-21 22:33:19 +0100 |
commit | bde280b9a4da2652716c8ffdeed9ebfa4461cc70 (patch) | |
tree | f2d96b0c74da35b701513a629817c7e944798827 /src/db.h | |
parent | 21d9f36781604e4ca9fc35dc65265593423b73e9 (diff) |
Revert "Use standard C99 (and Qt) types for 64-bit integers"
This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
Diffstat (limited to 'src/db.h')
-rw-r--r-- | src/db.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -5,8 +5,6 @@ #ifndef BITCOIN_DB_H #define BITCOIN_DB_H -#include <stdint.h> - #include "key.h" #include <map> @@ -319,7 +317,7 @@ bool LoadAddresses(); class CKeyPool { public: - int64_t nTime; + int64 nTime; std::vector<unsigned char> vchPubKey; CKeyPool() @@ -458,18 +456,18 @@ public: return Write(std::string("defaultkey"), vchPubKey); } - bool ReadPool(int64_t nPool, CKeyPool& keypool) + bool ReadPool(int64 nPool, CKeyPool& keypool) { return Read(std::make_pair(std::string("pool"), nPool), keypool); } - bool WritePool(int64_t nPool, const CKeyPool& keypool) + bool WritePool(int64 nPool, const CKeyPool& keypool) { nWalletDBUpdated++; return Write(std::make_pair(std::string("pool"), nPool), keypool); } - bool ErasePool(int64_t nPool) + bool ErasePool(int64 nPool) { nWalletDBUpdated++; return Erase(std::make_pair(std::string("pool"), nPool)); @@ -491,7 +489,7 @@ public: bool ReadAccount(const std::string& strAccount, CAccount& account); bool WriteAccount(const std::string& strAccount, const CAccount& account); bool WriteAccountingEntry(const CAccountingEntry& acentry); - int64_t GetAccountCreditDebit(const std::string& strAccount); + int64 GetAccountCreditDebit(const std::string& strAccount); void ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& acentries); int LoadWallet(CWallet* pwallet); |