Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,963 Lines • ▼ Show 20 Lines | for (const std::pair<const CTxDestination, CAddressBookData> &item : | ||||
if (strName == label) { | if (strName == label) { | ||||
result.insert(address); | result.insert(address); | ||||
} | } | ||||
} | } | ||||
return result; | return result; | ||||
} | } | ||||
void CWallet::DeleteLabel(const std::string &label) { | |||||
WalletBatch batch(*database); | |||||
batch.EraseAccount(label); | |||||
} | |||||
bool CReserveKey::GetReservedKey(CPubKey &pubkey, bool internal) { | bool CReserveKey::GetReservedKey(CPubKey &pubkey, bool internal) { | ||||
if (nIndex == -1) { | if (nIndex == -1) { | ||||
CKeyPool keypool; | CKeyPool keypool; | ||||
if (!pwallet->ReserveKeyFromKeyPool(nIndex, keypool, internal)) { | if (!pwallet->ReserveKeyFromKeyPool(nIndex, keypool, internal)) { | ||||
return false; | return false; | ||||
} | } | ||||
vchPubKey = keypool.vchPubKey; | vchPubKey = keypool.vchPubKey; | ||||
▲ Show 20 Lines • Show All 890 Lines • Show Last 20 Lines |