|
|
@ -78,10 +78,7 @@ public:
|
|
|
|
CWalletDB(const std::string& strFilename, const char* pszMode = "r+") : CDB(strFilename, pszMode)
|
|
|
|
CWalletDB(const std::string& strFilename, const char* pszMode = "r+") : CDB(strFilename, pszMode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
|
|
|
|
CWalletDB(const CWalletDB&);
|
|
|
|
|
|
|
|
void operator=(const CWalletDB&);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
bool WriteName(const std::string& strAddress, const std::string& strName);
|
|
|
|
bool WriteName(const std::string& strAddress, const std::string& strName);
|
|
|
|
bool EraseName(const std::string& strAddress);
|
|
|
|
bool EraseName(const std::string& strAddress);
|
|
|
|
|
|
|
|
|
|
|
@ -119,19 +116,23 @@ public:
|
|
|
|
bool WriteDestData(const std::string &address, const std::string &key, const std::string &value);
|
|
|
|
bool WriteDestData(const std::string &address, const std::string &key, const std::string &value);
|
|
|
|
/// Erase destination data tuple from wallet database
|
|
|
|
/// Erase destination data tuple from wallet database
|
|
|
|
bool EraseDestData(const std::string &address, const std::string &key);
|
|
|
|
bool EraseDestData(const std::string &address, const std::string &key);
|
|
|
|
private:
|
|
|
|
|
|
|
|
bool WriteAccountingEntry(const uint64_t nAccEntryNum, const CAccountingEntry& acentry);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
bool WriteAccountingEntry(const CAccountingEntry& acentry);
|
|
|
|
bool WriteAccountingEntry(const CAccountingEntry& acentry);
|
|
|
|
int64_t GetAccountCreditDebit(const std::string& strAccount);
|
|
|
|
int64_t GetAccountCreditDebit(const std::string& strAccount);
|
|
|
|
void ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& acentries);
|
|
|
|
void ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& acentries);
|
|
|
|
|
|
|
|
|
|
|
|
DBErrors ReorderTransactions(CWallet*);
|
|
|
|
DBErrors ReorderTransactions(CWallet* pwallet);
|
|
|
|
DBErrors LoadWallet(CWallet* pwallet);
|
|
|
|
DBErrors LoadWallet(CWallet* pwallet);
|
|
|
|
DBErrors FindWalletTx(CWallet* pwallet, std::vector<uint256>& vTxHash, std::vector<CWalletTx>& vWtx);
|
|
|
|
DBErrors FindWalletTx(CWallet* pwallet, std::vector<uint256>& vTxHash, std::vector<CWalletTx>& vWtx);
|
|
|
|
DBErrors ZapWalletTx(CWallet* pwallet, std::vector<CWalletTx>& vWtx);
|
|
|
|
DBErrors ZapWalletTx(CWallet* pwallet, std::vector<CWalletTx>& vWtx);
|
|
|
|
static bool Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys);
|
|
|
|
static bool Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys);
|
|
|
|
static bool Recover(CDBEnv& dbenv, std::string filename);
|
|
|
|
static bool Recover(CDBEnv& dbenv, std::string filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
CWalletDB(const CWalletDB&);
|
|
|
|
|
|
|
|
void operator=(const CWalletDB&);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool WriteAccountingEntry(const uint64_t nAccEntryNum, const CAccountingEntry& acentry);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
bool BackupWallet(const CWallet& wallet, const std::string& strDest);
|
|
|
|
bool BackupWallet(const CWallet& wallet, const std::string& strDest);
|
|
|
|