Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,288 Lines • ▼ Show 20 Lines | public: | ||||
/* Set the HD chain model (chain child index counters) */ | /* Set the HD chain model (chain child index counters) */ | ||||
void SetHDChain(const CHDChain &chain, bool memonly); | void SetHDChain(const CHDChain &chain, bool memonly); | ||||
const CHDChain &GetHDChain() const { return hdChain; } | const CHDChain &GetHDChain() const { return hdChain; } | ||||
/* Returns true if HD is enabled */ | /* Returns true if HD is enabled */ | ||||
bool IsHDEnabled() const; | bool IsHDEnabled() const; | ||||
/* Generates a new HD master key (will not be activated) */ | /* Generates a new HD master key (will not be activated) */ | ||||
CPubKey GenerateNewHDMasterKey(); | CPubKey GenerateNewSeed(); | ||||
/** | /** | ||||
* Derives a new HD master key (will not be activated) | * Derives a new HD master key (will not be activated) | ||||
*/ | */ | ||||
CPubKey DeriveNewMasterHDKey(const CKey &key); | CPubKey DeriveNewSeed(const CKey &key); | ||||
/** | /** | ||||
* Set the current HD master key (will reset the chain child index counters) | * Set the current HD master key (will reset the chain child index counters) | ||||
* Sets the master key's version based on the current wallet version (so the | * Sets the master key's version based on the current wallet version (so the | ||||
* caller must ensure the current wallet version is correct before calling | * caller must ensure the current wallet version is correct before calling | ||||
* this function). | * this function). | ||||
*/ | */ | ||||
void SetHDMasterKey(const CPubKey &key); | void SetHDSeed(const CPubKey &key); | ||||
/** | /** | ||||
* Blocks until the wallet state is up-to-date to /at least/ the current | * Blocks until the wallet state is up-to-date to /at least/ the current | ||||
* chain at the time this function is entered. | * chain at the time this function is entered. | ||||
* Obviously holding cs_main/cs_wallet when going into this call may cause | * Obviously holding cs_main/cs_wallet when going into this call may cause | ||||
* deadlock | * deadlock | ||||
*/ | */ | ||||
void BlockUntilSyncedToCurrentChain() LOCKS_EXCLUDED(cs_main, cs_wallet); | void BlockUntilSyncedToCurrentChain() LOCKS_EXCLUDED(cs_main, cs_wallet); | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |