Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | const CWalletTx *CWallet::GetWalletTx(const TxId &txid) const { | ||||
if (it == mapWallet.end()) { | if (it == mapWallet.end()) { | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
return &(it->second); | return &(it->second); | ||||
} | } | ||||
void CWallet::UpgradeKeyMetadata() { | void CWallet::UpgradeKeyMetadata() { | ||||
if (IsLocked() || IsWalletFlagSet(WALLET_FLAG_KEY_ORIGIN_METADATA)) { | |||||
return; | |||||
} | |||||
if (m_spk_man) { | if (m_spk_man) { | ||||
AssertLockHeld(m_spk_man->cs_wallet); | AssertLockHeld(m_spk_man->cs_wallet); | ||||
m_spk_man->UpgradeKeyMetadata(); | m_spk_man->UpgradeKeyMetadata(); | ||||
} | } | ||||
SetWalletFlag(WALLET_FLAG_KEY_ORIGIN_METADATA); | |||||
} | } | ||||
bool CWallet::Unlock(const SecureString &strWalletPassphrase, | bool CWallet::Unlock(const SecureString &strWalletPassphrase, | ||||
bool accept_no_keys) { | bool accept_no_keys) { | ||||
CCrypter crypter; | CCrypter crypter; | ||||
CKeyingMaterial _vMasterKey; | CKeyingMaterial _vMasterKey; | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 4,220 Lines • Show Last 20 Lines |