MCPcopy Create free account
hub / github.com/ElementsProject/elements / WriteDescriptorLastHardenedCache

Method WriteDescriptorLastHardenedCache

src/wallet/walletdb.cpp:260–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260bool WalletBatch::WriteDescriptorLastHardenedCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index)
261{
262 std::vector<unsigned char> ser_xpub(BIP32_EXTKEY_SIZE);
263 xpub.Encode(ser_xpub.data());
264 return WriteIC(std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORLHCACHE, desc_id), key_exp_index), ser_xpub);
265}
266
267bool WalletBatch::WriteDescriptorCacheItems(const uint256& desc_id, const DescriptorCache& cache)
268{

Callers

nothing calls this directly

Calls 2

EncodeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected