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

Method WriteDescriptorParentCache

src/wallet/walletdb.cpp:253–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253bool WalletBatch::WriteDescriptorParentCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index)
254{
255 std::vector<unsigned char> ser_xpub(BIP32_EXTKEY_SIZE);
256 xpub.Encode(ser_xpub.data());
257 return WriteIC(std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORCACHE, desc_id), key_exp_index), ser_xpub);
258}
259
260bool WalletBatch::WriteDescriptorLastHardenedCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index)
261{

Callers

nothing calls this directly

Calls 2

EncodeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected