| 251 | } |
| 252 | |
| 253 | bool 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 | |
| 260 | bool WalletBatch::WriteDescriptorLastHardenedCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index) |
| 261 | { |