diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2011-12-20 16:52:59 -0500 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2011-12-20 16:52:59 -0500 |
commit | 21d9f36781604e4ca9fc35dc65265593423b73e9 (patch) | |
tree | 223bf70418e43a0b9c8366c65db214780f77d61a /src/db.h | |
parent | 781c06c0f534913321a415a4fb64a60734e43101 (diff) |
Use standard C99 (and Qt) types for 64-bit integers
Diffstat (limited to 'src/db.h')
-rw-r--r-- | src/db.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -5,6 +5,8 @@ #ifndef BITCOIN_DB_H #define BITCOIN_DB_H +#include <stdint.h> + #include "key.h" #include <map> @@ -317,7 +319,7 @@ bool LoadAddresses(); class CKeyPool { public: - int64 nTime; + int64_t nTime; std::vector<unsigned char> vchPubKey; CKeyPool() @@ -456,18 +458,18 @@ public: return Write(std::string("defaultkey"), vchPubKey); } - bool ReadPool(int64 nPool, CKeyPool& keypool) + bool ReadPool(int64_t nPool, CKeyPool& keypool) { return Read(std::make_pair(std::string("pool"), nPool), keypool); } - bool WritePool(int64 nPool, const CKeyPool& keypool) + bool WritePool(int64_t nPool, const CKeyPool& keypool) { nWalletDBUpdated++; return Write(std::make_pair(std::string("pool"), nPool), keypool); } - bool ErasePool(int64 nPool) + bool ErasePool(int64_t nPool) { nWalletDBUpdated++; return Erase(std::make_pair(std::string("pool"), nPool)); @@ -489,7 +491,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 GetAccountCreditDebit(const std::string& strAccount); + int64_t GetAccountCreditDebit(const std::string& strAccount); void ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& acentries); int LoadWallet(CWallet* pwallet); |