diff --git a/src/Makefile.am b/src/Makefile.am --- a/src/Makefile.am +++ b/src/Makefile.am @@ -275,6 +275,7 @@ wallet/load.h \ wallet/psbtwallet.h \ wallet/rpcwallet.h \ + wallet/scriptpubkeyman.h \ wallet/wallet.h \ wallet/walletdb.h \ wallet/wallettool.h \ @@ -391,11 +392,11 @@ wallet/coinselection.cpp \ wallet/db.cpp \ wallet/fees.cpp \ - wallet/ismine.cpp \ wallet/load.cpp \ wallet/psbtwallet.cpp \ wallet/rpcdump.cpp \ wallet/rpcwallet.cpp \ + wallet/scriptpubkeyman.cpp \ wallet/wallet.cpp \ wallet/walletdb.cpp \ wallet/walletutil.cpp \ diff --git a/src/script/signingprovider.h b/src/script/signingprovider.h --- a/src/script/signingprovider.h +++ b/src/script/signingprovider.h @@ -75,8 +75,6 @@ */ class FillableSigningProvider : public SigningProvider { protected: - mutable RecursiveMutex cs_KeyStore; - using KeyMap = std::map; using ScriptMap = std::map; @@ -84,6 +82,8 @@ ScriptMap mapScripts GUARDED_BY(cs_KeyStore); public: + mutable RecursiveMutex cs_KeyStore; + virtual bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey); virtual bool AddKey(const CKey &key) { return AddKeyPubKey(key, key.GetPubKey()); diff --git a/src/wallet/CMakeLists.txt b/src/wallet/CMakeLists.txt --- a/src/wallet/CMakeLists.txt +++ b/src/wallet/CMakeLists.txt @@ -17,11 +17,11 @@ crypter.cpp db.cpp fees.cpp - ismine.cpp load.cpp psbtwallet.cpp rpcdump.cpp rpcwallet.cpp + scriptpubkeyman.cpp wallet.cpp walletdb.cpp walletutil.cpp diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp --- a/src/wallet/init.cpp +++ b/src/wallet/init.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/src/wallet/ismine.cpp b/src/wallet/ismine.cpp deleted file mode 100644 --- a/src/wallet/ismine.cpp +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2016 The Bitcoin Core developers -// Distributed under the MIT software license, see the accompanying -// file COPYING or http://www.opensource.org/licenses/mit-license.php. - -#include - -#include -#include