Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show First 20 Lines • Show All 524 Lines • ▼ Show 20 Lines | public: | ||||
void LoadKeyMetadata(const CKeyID &keyID, const CKeyMetadata &metadata); | void LoadKeyMetadata(const CKeyID &keyID, const CKeyMetadata &metadata); | ||||
void LoadScriptMetadata(const CScriptID &script_id, | void LoadScriptMetadata(const CScriptID &script_id, | ||||
const CKeyMetadata &metadata); | const CKeyMetadata &metadata); | ||||
//! Generate a new key | //! Generate a new key | ||||
CPubKey GenerateNewKey(WalletBatch &batch, CHDChain &hd_chain, | CPubKey GenerateNewKey(WalletBatch &batch, CHDChain &hd_chain, | ||||
bool internal = false) | bool internal = false) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); | EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); | ||||
/* Set the HD chain model (chain child index counters) */ | /** | ||||
void SetHDChain(const CHDChain &chain, bool memonly); | * Set the HD chain model (chain child index counters) and writes it to the | ||||
* database | |||||
*/ | |||||
void AddHDChain(const CHDChain &chain); | |||||
//! Load a HD chain model (used by LoadWallet) | |||||
void LoadHDChain(const CHDChain &chain); | |||||
const CHDChain &GetHDChain() const { return m_hd_chain; } | const CHDChain &GetHDChain() const { return m_hd_chain; } | ||||
void AddInactiveHDChain(const CHDChain &chain); | void AddInactiveHDChain(const CHDChain &chain); | ||||
//! Adds a watch-only address to the store, without saving it to disk (used | //! Adds a watch-only address to the store, without saving it to disk (used | ||||
//! by LoadWallet) | //! by LoadWallet) | ||||
bool LoadWatchOnly(const CScript &dest); | bool LoadWatchOnly(const CScript &dest); | ||||
//! Returns whether the watch-only script is in the wallet | //! Returns whether the watch-only script is in the wallet | ||||
bool HaveWatchOnly(const CScript &dest) const; | bool HaveWatchOnly(const CScript &dest) const; | ||||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |