diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -125,10 +125,6 @@ //! Get wallet address list. virtual std::vector getAddresses() = 0; - //! Add scripts to key store so old so software versions opening the wallet - //! database can detect payments to newer address types. - virtual void learnRelatedScripts(const CPubKey &key, OutputType type) = 0; - //! Add dest data. virtual bool addDestData(const CTxDestination &dest, const std::string &key, const std::string &value) = 0; diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -193,10 +193,6 @@ } return result; } - void learnRelatedScripts(const CPubKey &key, OutputType type) override { - m_wallet->GetLegacyScriptPubKeyMan()->LearnRelatedScripts(key, - type); - } bool addDestData(const CTxDestination &dest, const std::string &key, const std::string &value) override { LOCK(m_wallet->cs_wallet);