Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,703 Lines • ▼ Show 20 Lines | if (nIndex == -1) { | ||||
if (!m_spk_man->GetReservedDestination(type, internal, nIndex, | if (!m_spk_man->GetReservedDestination(type, internal, nIndex, | ||||
keypool)) { | keypool)) { | ||||
return false; | return false; | ||||
} | } | ||||
vchPubKey = keypool.vchPubKey; | vchPubKey = keypool.vchPubKey; | ||||
fInternal = keypool.fInternal; | fInternal = keypool.fInternal; | ||||
} | } | ||||
assert(vchPubKey.IsValid()); | assert(vchPubKey.IsValid()); | ||||
m_spk_man->LearnRelatedScripts(vchPubKey, type); | |||||
address = GetDestinationForKey(vchPubKey, type); | address = GetDestinationForKey(vchPubKey, type); | ||||
dest = address; | dest = address; | ||||
return true; | return true; | ||||
} | } | ||||
void ReserveDestination::KeepDestination() { | void ReserveDestination::KeepDestination() { | ||||
if (nIndex != -1) { | if (nIndex != -1) { | ||||
m_spk_man->KeepDestination(nIndex); | m_spk_man->KeepDestination(nIndex); | ||||
m_spk_man->LearnRelatedScripts(vchPubKey, type); | |||||
} | } | ||||
nIndex = -1; | nIndex = -1; | ||||
vchPubKey = CPubKey(); | vchPubKey = CPubKey(); | ||||
address = CNoDestination(); | address = CNoDestination(); | ||||
} | } | ||||
void ReserveDestination::ReturnDestination() { | void ReserveDestination::ReturnDestination() { | ||||
▲ Show 20 Lines • Show All 821 Lines • Show Last 20 Lines |