diff options
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -159,8 +159,9 @@ extern vector<unsigned char> vchHDChainCode; // 32 bytes (IR) | |||
| 159 | extern unsigned int nHDNext; // next child index to derive | 159 | extern unsigned int nHDNext; // next child index to derive |
| 160 | inline bool HaveHDSeed() { return vchHDMaster.size() == 32 && vchHDChainCode.size() == 32; } | 160 | inline bool HaveHDSeed() { return vchHDMaster.size() == 32 && vchHDChainCode.size() == 32; } |
| 161 | 161 | ||
| 162 | // Install a seed derived from a mnemonic, replacing any existing one, and reset | 162 | // Install a seed derived from a mnemonic, replacing any existing one. The |
| 163 | // the derivation counter. Writes to wallet.dat. Returns false and leaves the | 163 | // default receiving key is derived immediately, so the next visible address is |
| 164 | // covered by the phrase. Writes to wallet.dat. Returns false and leaves the | ||
| 164 | // wallet untouched if the phrase is not valid. | 165 | // wallet untouched if the phrase is not valid. |
| 165 | bool SetHDSeedFromMnemonic(const string& strMnemonic, string& strErrorRet); | 166 | bool SetHDSeedFromMnemonic(const string& strMnemonic, string& strErrorRet); |
| 166 | 167 | ||