File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ class CKeyPool
118
118
READWRITE (fInternal );
119
119
}
120
120
catch (std::ios_base::failure&) {
121
- /* flag as external address if we can't read the internal boolean */
121
+ /* flag as external address if we can't read the internal boolean
122
+ (this will be the case for any wallet before the HD chain split version) */
122
123
fInternal = false ;
123
124
}
124
125
}
@@ -663,6 +664,9 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
663
664
/* the HD chain data model (external chain counters) */
664
665
CHDChain hdChain;
665
666
667
+ /* HD derive new child key (on internal or external chain) */
668
+ void DeriveNewChildKey (CKeyMetadata& metadata, CKey& secret, bool internal = false );
669
+
666
670
bool fFileBacked ;
667
671
668
672
std::set<int64_t > setKeyPool;
@@ -791,7 +795,6 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
791
795
* Generate a new key
792
796
*/
793
797
CPubKey GenerateNewKey (bool internal = false );
794
- void DeriveNewChildKey (CKeyMetadata& metadata, CKey& secret, bool internal = false );
795
798
// ! Adds a key to the store, and saves it to disk.
796
799
bool AddKeyPubKey (const CKey& key, const CPubKey &pubkey) override ;
797
800
// ! Adds a key to the store, without saving it to disk (used by LoadWallet)
You can’t perform that action at this time.
0 commit comments