Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | bool WalletBatch::WriteCryptedDescriptorKey( | ||||
return true; | return true; | ||||
} | } | ||||
bool WalletBatch::WriteDescriptor(const uint256 &desc_id, | bool WalletBatch::WriteDescriptor(const uint256 &desc_id, | ||||
const WalletDescriptor &descriptor) { | const WalletDescriptor &descriptor) { | ||||
return WriteIC(make_pair(DBKeys::WALLETDESCRIPTOR, desc_id), descriptor); | return WriteIC(make_pair(DBKeys::WALLETDESCRIPTOR, desc_id), descriptor); | ||||
} | } | ||||
bool WalletBatch::WriteDescriptorDerivedCache(const CExtPubKey &xpub, | |||||
const uint256 &desc_id, | |||||
uint32_t key_exp_index, | |||||
uint32_t der_index) { | |||||
std::vector<uint8_t> ser_xpub(BIP32_EXTKEY_SIZE); | |||||
xpub.Encode(ser_xpub.data()); | |||||
return WriteIC( | |||||
std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORCACHE, desc_id), | |||||
std::make_pair(key_exp_index, der_index)), | |||||
ser_xpub); | |||||
} | |||||
bool WalletBatch::WriteDescriptorParentCache(const CExtPubKey &xpub, | |||||
const uint256 &desc_id, | |||||
uint32_t key_exp_index) { | |||||
std::vector<uint8_t> ser_xpub(BIP32_EXTKEY_SIZE); | |||||
xpub.Encode(ser_xpub.data()); | |||||
return WriteIC( | |||||
std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORCACHE, desc_id), | |||||
key_exp_index), | |||||
ser_xpub); | |||||
} | |||||
class CWalletScanState { | class CWalletScanState { | ||||
public: | public: | ||||
unsigned int nKeys{0}; | unsigned int nKeys{0}; | ||||
unsigned int nCKeys{0}; | unsigned int nCKeys{0}; | ||||
unsigned int nWatchKeys{0}; | unsigned int nWatchKeys{0}; | ||||
unsigned int nKeyMeta{0}; | unsigned int nKeyMeta{0}; | ||||
unsigned int m_unknown_records{0}; | unsigned int m_unknown_records{0}; | ||||
bool fIsEncrypted{false}; | bool fIsEncrypted{false}; | ||||
▲ Show 20 Lines • Show All 786 Lines • Show Last 20 Lines |