![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
Access to the wallet database (wallet.dat) More...
#include <walletdb.h>
Public Member Functions | |
CWalletDB (std::string strFilename, const char *pszMode="r+") | |
bool | WriteName (const std::string &strAddress, const std::string &strName) |
bool | EraseName (const std::string &strAddress) |
bool | WritePurpose (const std::string &strAddress, const std::string &purpose) |
bool | ErasePurpose (const std::string &strAddress) |
bool | WriteTx (uint256 hash, const CWalletTx &wtx) |
bool | EraseTx (uint256 hash) |
bool | WriteKey (const CPubKey &vchPubKey, const CPrivKey &vchPrivKey, const CKeyMetadata &keyMeta) |
bool | WriteCryptedKey (const CPubKey &vchPubKey, const std::vector< unsigned char > &vchCryptedSecret, const CKeyMetadata &keyMeta) |
bool | WriteMasterKey (unsigned int nID, const CMasterKey &kMasterKey) |
bool | WriteCScript (const uint160 &hash, const CScript &redeemScript) |
bool | WriteWatchOnly (const CScript &script) |
bool | EraseWatchOnly (const CScript &script) |
bool | WriteBestBlock (const CBlockLocator &locator) |
bool | ReadBestBlock (CBlockLocator &locator) |
bool | WriteOrderPosNext (int64_t nOrderPosNext) |
bool | WriteDefaultKey (const CPubKey &vchPubKey) |
bool | ReadPool (int64_t nPool, CKeyPool &keypool) |
bool | WritePool (int64_t nPool, const CKeyPool &keypool) |
bool | ErasePool (int64_t nPool) |
bool | WriteMinVersion (int nVersion) |
bool | ReadAccount (const std::string &strAccount, CAccount &account) |
bool | WriteAccount (const std::string &strAccount, const CAccount &account) |
bool | WriteDestData (const std::string &address, const std::string &key, const std::string &value) |
Write destination data key,value tuple to database. More... | |
bool | EraseDestData (const std::string &address, const std::string &key) |
Erase destination data tuple from wallet database. More... | |
bool | WriteAccountingEntry (const CAccountingEntry &acentry) |
int64_t | GetAccountCreditDebit (const std::string &strAccount) |
void | ListAccountCreditDebit (const std::string &strAccount, std::list< CAccountingEntry > &acentries) |
DBErrors | ReorderTransactions (CWallet *) |
DBErrors | LoadWallet (CWallet *pwallet) |
DBErrors | FindWalletTx (CWallet *pwallet, std::vector< uint256 > &vTxHash) |
DBErrors | ZapWalletTx (CWallet *pwallet) |
![]() | |
void | Flush () |
void | Close () |
bool | TxnBegin () |
bool | TxnCommit () |
bool | TxnAbort () |
bool | ReadVersion (int &nVersion) |
bool | WriteVersion (int nVersion) |
Static Public Member Functions | |
static bool | Recover (CDBEnv &dbenv, std::string filename, bool fOnlyKeys) |
static bool | Recover (CDBEnv &dbenv, std::string filename) |
![]() | |
static bool | Rewrite (const std::string &strFile, const char *pszSkip=NULL) |
Private Member Functions | |
CWalletDB (const CWalletDB &) | |
void | operator= (const CWalletDB &) |
bool | WriteAccountingEntry (const uint64_t nAccEntryNum, const CAccountingEntry &acentry) |
Additional Inherited Members | |
![]() | |
CDB (const char *pszFile, const char *pszMode="r+") | |
~CDB () | |
template<typename K , typename T > | |
bool | Read (const K &key, T &value) |
template<typename K , typename T > | |
bool | Write (const K &key, const T &value, bool fOverwrite=true) |
template<typename K > | |
bool | Erase (const K &key) |
template<typename K > | |
bool | Exists (const K &key) |
Dbc * | GetCursor () |
int | ReadAtCursor (Dbc *pcursor, CDataStream &ssKey, CDataStream &ssValue, unsigned int fFlags=DB_NEXT) |
![]() | |
Db * | pdb |
std::string | strFile |
DbTxn * | activeTxn |
bool | fReadOnly |
Access to the wallet database (wallet.dat)
Definition at line 73 of file walletdb.h.
|
inline |
Definition at line 76 of file walletdb.h.
|
private |
bool CWalletDB::EraseDestData | ( | const std::string & | address, |
const std::string & | key | ||
) |
Erase destination data tuple from wallet database.
Definition at line 983 of file walletdb.cpp.
bool CWalletDB::EraseName | ( | const std::string & | strAddress | ) |
bool CWalletDB::ErasePool | ( | int64_t | nPool | ) |
bool CWalletDB::ErasePurpose | ( | const std::string & | strAddress | ) |
bool CWalletDB::EraseTx | ( | uint256 | hash | ) |
bool CWalletDB::EraseWatchOnly | ( | const CScript & | script | ) |
Definition at line 122 of file walletdb.cpp.
int64_t CWalletDB::GetAccountCreditDebit | ( | const std::string & | strAccount | ) |
void CWalletDB::ListAccountCreditDebit | ( | const std::string & | strAccount, |
std::list< CAccountingEntry > & | acentries | ||
) |
Definition at line 608 of file walletdb.cpp.
|
private |
bool CWalletDB::ReadAccount | ( | const std::string & | strAccount, |
CAccount & | account | ||
) |
Definition at line 173 of file walletdb.cpp.
bool CWalletDB::ReadBestBlock | ( | CBlockLocator & | locator | ) |
bool CWalletDB::ReadPool | ( | int64_t | nPool, |
CKeyPool & | keypool | ||
) |
|
static |
Definition at line 894 of file walletdb.cpp.
|
static |
bool CWalletDB::WriteAccount | ( | const std::string & | strAccount, |
const CAccount & | account | ||
) |
|
private |
bool CWalletDB::WriteAccountingEntry | ( | const CAccountingEntry & | acentry | ) |
Definition at line 189 of file walletdb.cpp.
bool CWalletDB::WriteBestBlock | ( | const CBlockLocator & | locator | ) |
bool CWalletDB::WriteCryptedKey | ( | const CPubKey & | vchPubKey, |
const std::vector< unsigned char > & | vchCryptedSecret, | ||
const CKeyMetadata & | keyMeta | ||
) |
bool CWalletDB::WriteDefaultKey | ( | const CPubKey & | vchPubKey | ) |
Definition at line 145 of file walletdb.cpp.
bool CWalletDB::WriteDestData | ( | const std::string & | address, |
const std::string & | key, | ||
const std::string & | value | ||
) |
Write destination data key,value tuple to database.
Definition at line 977 of file walletdb.cpp.
bool CWalletDB::WriteKey | ( | const CPubKey & | vchPubKey, |
const CPrivKey & | vchPrivKey, | ||
const CKeyMetadata & | keyMeta | ||
) |
Definition at line 66 of file walletdb.cpp.
bool CWalletDB::WriteMasterKey | ( | unsigned int | nID, |
const CMasterKey & | kMasterKey | ||
) |
bool CWalletDB::WriteMinVersion | ( | int | nVersion | ) |
bool CWalletDB::WriteName | ( | const std::string & | strAddress, |
const std::string & | strName | ||
) |
bool CWalletDB::WriteOrderPosNext | ( | int64_t | nOrderPosNext | ) |
bool CWalletDB::WritePool | ( | int64_t | nPool, |
const CKeyPool & | keypool | ||
) |
bool CWalletDB::WritePurpose | ( | const std::string & | strAddress, |
const std::string & | purpose | ||
) |
bool CWalletDB::WriteWatchOnly | ( | const CScript & | script | ) |