Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.cpp
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | for (auto &meta_pair : mapKeyMetadata) { | ||||
// Write meta to wallet | // Write meta to wallet | ||||
CPubKey pubkey; | CPubKey pubkey; | ||||
if (GetPubKey(meta_pair.first, pubkey)) { | if (GetPubKey(meta_pair.first, pubkey)) { | ||||
batch->WriteKeyMetadata(meta, pubkey, true); | batch->WriteKeyMetadata(meta, pubkey, true); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// write before setting the flag | |||||
batch.reset(); | |||||
m_storage.SetWalletFlag(WALLET_FLAG_KEY_ORIGIN_METADATA); | |||||
} | } | ||||
bool LegacyScriptPubKeyMan::IsHDEnabled() const { | bool LegacyScriptPubKeyMan::IsHDEnabled() const { | ||||
return !hdChain.seed_id.IsNull(); | return !hdChain.seed_id.IsNull(); | ||||
} | } | ||||
bool LegacyScriptPubKeyMan::CanGetAddresses(bool internal) { | bool LegacyScriptPubKeyMan::CanGetAddresses(bool internal) { | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
▲ Show 20 Lines • Show All 1,040 Lines • Show Last 20 Lines |