Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | const CWalletTx *CWallet::GetWalletTx(const TxId &txid) const { | ||||
return &(it->second); | return &(it->second); | ||||
} | } | ||||
void CWallet::UpgradeKeyMetadata() { | void CWallet::UpgradeKeyMetadata() { | ||||
if (IsLocked() || IsWalletFlagSet(WALLET_FLAG_KEY_ORIGIN_METADATA)) { | if (IsLocked() || IsWalletFlagSet(WALLET_FLAG_KEY_ORIGIN_METADATA)) { | ||||
return; | return; | ||||
} | } | ||||
if (m_spk_man) { | auto spk_man = GetLegacyScriptPubKeyMan(); | ||||
m_spk_man->UpgradeKeyMetadata(); | if (!spk_man) { | ||||
return; | |||||
} | } | ||||
spk_man->UpgradeKeyMetadata(); | |||||
SetWalletFlag(WALLET_FLAG_KEY_ORIGIN_METADATA); | 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,369 Lines • Show Last 20 Lines |