diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index 00dd6eed4d1..cf024294bf3 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -120,9 +120,6 @@ public: virtual bool HavePrivateKeys() const { return false; } virtual bool HaveCryptedKeys() const { return false; } - //! The action to do when the DB needs rewrite - virtual void RewriteDB() {} - virtual unsigned int GetKeyPoolSize() const { return 0; } virtual int64_t GetTimeFirstKey() const { return 0; } diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index b356d24ab55..db2cf474e0c 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2357,15 +2357,6 @@ DBErrors CWallet::PopulateWalletFromDB(bilingual_str& error, std::vectorRewriteDB(); - } - } - } if (m_spk_managers.empty()) { assert(m_external_spk_managers.empty()); @@ -2394,9 +2385,6 @@ DBErrors CWallet::PopulateWalletFromDB(bilingual_str& error, std::vector 0) { - // Rewrite encrypted wallets of versions 0.4.0 and 0.5.0rc: - if (last_client == 40000 || last_client == 50000) result = std::max(result, DBErrors::NEED_REWRITE); - } - // Load keymeta std::map hd_chains; LoadResult keymeta_res = LoadRecords(pwallet, batch, DBKeys::KEYMETA, diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index 65ff8c0b60f..455fc745571 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -44,7 +44,6 @@ enum class DBErrors : int { LOAD_OK = 0, NEED_RESCAN = 1, - NEED_REWRITE = 2, EXTERNAL_SIGNER_SUPPORT_REQUIRED = 3, NONCRITICAL_ERROR = 4, TOO_NEW = 5,