| 258 | } |
| 259 | |
| 260 | bool 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 | |
| 267 | bool WalletBatch::WriteDescriptorCacheItems(const uint256& desc_id, const DescriptorCache& cache) |
| 268 | { |