Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,204 Lines • ▼ Show 20 Lines | public: | ||||
/* 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 GenerateNewHDMasterKey(); | ||||
/** | /** | ||||
* 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) | ||||
* If possibleOldChain is provided, the parameters from the old chain | * Sets the master key's version based on the current wallet version (so the | ||||
* (version) will be preserved. | * caller must ensure the current wallet version is correct before calling | ||||
* this function). | |||||
*/ | */ | ||||
bool SetHDMasterKey(const CPubKey &key, | bool SetHDMasterKey(const CPubKey &key); | ||||
CHDChain *possibleOldChain = nullptr); | |||||
/** | /** | ||||
* 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(); | void BlockUntilSyncedToCurrentChain(); | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |