Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 658 Lines • ▼ Show 20 Lines | try { | ||||
parent = false; | parent = false; | ||||
} catch (...) { | } catch (...) { | ||||
} | } | ||||
std::vector<uint8_t> ser_xpub(BIP32_EXTKEY_SIZE); | std::vector<uint8_t> ser_xpub(BIP32_EXTKEY_SIZE); | ||||
ssValue >> ser_xpub; | ssValue >> ser_xpub; | ||||
CExtPubKey xpub; | CExtPubKey xpub; | ||||
xpub.Decode(ser_xpub.data()); | xpub.Decode(ser_xpub.data()); | ||||
if (wss.m_descriptor_caches.count(desc_id)) { | |||||
wss.m_descriptor_caches[desc_id] = DescriptorCache(); | |||||
} | |||||
if (parent) { | if (parent) { | ||||
wss.m_descriptor_caches[desc_id].CacheParentExtPubKey( | wss.m_descriptor_caches[desc_id].CacheParentExtPubKey( | ||||
key_exp_index, xpub); | key_exp_index, xpub); | ||||
} else { | } else { | ||||
wss.m_descriptor_caches[desc_id].CacheDerivedExtPubKey( | wss.m_descriptor_caches[desc_id].CacheDerivedExtPubKey( | ||||
key_exp_index, der_index, xpub); | key_exp_index, der_index, xpub); | ||||
} | } | ||||
} else if (strType == DBKeys::WALLETDESCRIPTORKEY) { | } else if (strType == DBKeys::WALLETDESCRIPTORKEY) { | ||||
▲ Show 20 Lines • Show All 471 Lines • Show Last 20 Lines |