MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / WriteDescriptorDerivedCache

Method WriteDescriptorDerivedCache

src/wallet/walletdb.cpp:239–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239bool WalletBatch::WriteDescriptorDerivedCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index, uint32_t der_index)
240{
241 std::vector<unsigned char> ser_xpub(BIP32_EXTKEY_SIZE);
242 xpub.Encode(ser_xpub.data());
243 return WriteIC(std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORCACHE, desc_id), std::make_pair(key_exp_index, der_index)), ser_xpub);
244}
245
246bool WalletBatch::WriteDescriptorParentCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index)
247{

Callers

nothing calls this directly

Calls 2

EncodeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected