diff options
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r-- | src/wallet/scriptpubkeyman.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index 927401be20..0e38cbf657 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -159,6 +159,12 @@ public: //! Mark unused addresses as being used virtual void MarkUnusedAddresses(const CScript& script) {} + /** Sets up the key generation stuff, i.e. generates new HD seeds and sets them as active. + * Returns false if already setup or setup fails, true if setup is successful + * Set force=true to make it re-setup if already setup, used for upgrades + */ + virtual bool SetupGeneration(bool force = false) { return false; } + /* Returns true if HD is enabled */ virtual bool IsHDEnabled() const { return false; } @@ -276,6 +282,8 @@ public: bool IsHDEnabled() const override; + bool SetupGeneration(bool force = false) override; + bool Upgrade(int prev_version, std::string& error) override; bool HavePrivateKeys() const override; |