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

Method WriteDescriptorDerivedCache

src/wallet/walletdb.cpp:246–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246bool WalletBatch::WriteDescriptorDerivedCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index, uint32_t der_index)
247{
248 std::vector<unsigned char> ser_xpub(BIP32_EXTKEY_SIZE);
249 xpub.Encode(ser_xpub.data());
250 return WriteIC(std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORCACHE, desc_id), std::make_pair(key_exp_index, der_index)), ser_xpub);
251}
252
253bool WalletBatch::WriteDescriptorParentCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index)
254{

Callers

nothing calls this directly

Calls 2

EncodeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected