Bitcoin ABC 0.26.3
P2P Digital Currency
|
Access to the wallet database. More...
#include <walletdb.h>
Static Public Member Functions | |
static bool | IsKeyType (const std::string &strType) |
Private Member Functions | |
template<typename K , typename T > | |
bool | WriteIC (const K &key, const T &value, bool fOverwrite=true) |
template<typename K > | |
bool | EraseIC (const K &key) |
Private Attributes | |
std::unique_ptr< DatabaseBatch > | m_batch |
WalletDatabase & | m_database |
Access to the wallet database.
Opens the database and provides read and write access to it. Each read and write is its own transaction. Multiple operation transactions can be started using TxnBegin() and committed using TxnCommit() Otherwise the transaction will be committed when the object goes out of scope. Optionally (on by default) it will flush to disk on close. Every 1000 writes will automatically trigger a flush to disk.
Definition at line 175 of file walletdb.h.
|
inlineexplicit |
Definition at line 201 of file walletdb.h.
|
delete |
Definition at line 220 of file walletdb.cpp.
bool WalletBatch::EraseDestData | ( | const CTxDestination & | address, |
const std::string & | key | ||
) |
Erase destination data tuple from wallet database.
Definition at line 1090 of file walletdb.cpp.
Definition at line 189 of file walletdb.h.
bool WalletBatch::EraseName | ( | const CTxDestination & | address | ) |
Definition at line 70 of file walletdb.cpp.
Definition at line 205 of file walletdb.cpp.
bool WalletBatch::ErasePurpose | ( | const CTxDestination & | address | ) |
Definition at line 91 of file walletdb.cpp.
Definition at line 103 of file walletdb.cpp.
Definition at line 172 of file walletdb.cpp.
Definition at line 956 of file walletdb.cpp.
|
static |
Definition at line 769 of file walletdb.cpp.
Definition at line 774 of file walletdb.cpp.
|
delete |
bool WalletBatch::ReadBestBlock | ( | CBlockLocator & | locator | ) |
Definition at line 186 of file walletdb.cpp.
Definition at line 197 of file walletdb.cpp.
bool WalletBatch::TxnAbort | ( | ) |
Abort current transaction.
Definition at line 1116 of file walletdb.cpp.
bool WalletBatch::TxnBegin | ( | ) |
Begin a new transaction.
Definition at line 1108 of file walletdb.cpp.
bool WalletBatch::TxnCommit | ( | ) |
Commit current transaction.
Definition at line 1112 of file walletdb.cpp.
Definition at line 213 of file walletdb.cpp.
bool WalletBatch::WriteBestBlock | ( | const CBlockLocator & | locator | ) |
Definition at line 179 of file walletdb.cpp.
bool WalletBatch::WriteCryptedDescriptorKey | ( | const uint256 & | desc_id, |
const CPubKey & | pubkey, | ||
const std::vector< uint8_t > & | secret | ||
) |
Definition at line 240 of file walletdb.cpp.
bool WalletBatch::WriteCryptedKey | ( | const CPubKey & | vchPubKey, |
const std::vector< uint8_t > & | vchCryptedSecret, | ||
const CKeyMetadata & | keyMeta | ||
) |
Definition at line 129 of file walletdb.cpp.
Definition at line 159 of file walletdb.cpp.
bool WalletBatch::WriteDescriptor | ( | const uint256 & | desc_id, |
const WalletDescriptor & | descriptor | ||
) |
Definition at line 253 of file walletdb.cpp.
bool WalletBatch::WriteDescriptorDerivedCache | ( | const CExtPubKey & | xpub, |
const uint256 & | desc_id, | ||
uint32_t | key_exp_index, | ||
uint32_t | der_index | ||
) |
Definition at line 258 of file walletdb.cpp.
bool WalletBatch::WriteDescriptorKey | ( | const uint256 & | desc_id, |
const CPubKey & | pubkey, | ||
const CPrivKey & | privkey | ||
) |
Definition at line 226 of file walletdb.cpp.
bool WalletBatch::WriteDescriptorParentCache | ( | const CExtPubKey & | xpub, |
const uint256 & | desc_id, | ||
uint32_t | key_exp_index | ||
) |
Definition at line 270 of file walletdb.cpp.
bool WalletBatch::WriteDestData | ( | const CTxDestination & | address, |
const std::string & | key, | ||
const std::string & | value | ||
) |
Write destination data key,value tuple to database.
Definition at line 1077 of file walletdb.cpp.
write the hdchain model (external chain child index counter)
Definition at line 1100 of file walletdb.cpp.
Definition at line 178 of file walletdb.h.
bool WalletBatch::WriteKey | ( | const CPubKey & | vchPubKey, |
const CPrivKey & | vchPrivKey, | ||
const CKeyMetadata & | keyMeta | ||
) |
Definition at line 113 of file walletdb.cpp.
bool WalletBatch::WriteKeyMetadata | ( | const CKeyMetadata & | meta, |
const CPubKey & | pubkey, | ||
const bool | overwrite | ||
) |
Definition at line 107 of file walletdb.cpp.
bool WalletBatch::WriteMasterKey | ( | unsigned int | nID, |
const CMasterKey & | kMasterKey | ||
) |
Definition at line 154 of file walletdb.cpp.
Definition at line 209 of file walletdb.cpp.
bool WalletBatch::WriteName | ( | const CTxDestination & | address, |
const std::string & | strName | ||
) |
Definition at line 60 of file walletdb.cpp.
Definition at line 193 of file walletdb.cpp.
Definition at line 201 of file walletdb.cpp.
bool WalletBatch::WritePurpose | ( | const CTxDestination & | address, |
const std::string & | purpose | ||
) |
Definition at line 81 of file walletdb.cpp.
Definition at line 99 of file walletdb.cpp.
Definition at line 1104 of file walletdb.cpp.
bool WalletBatch::WriteWatchOnly | ( | const CScript & | script, |
const CKeyMetadata & | keymeta | ||
) |
Definition at line 164 of file walletdb.cpp.
Definition at line 1008 of file walletdb.cpp.
|
private |
Definition at line 286 of file walletdb.h.
|
private |
Definition at line 287 of file walletdb.h.