diff --git a/src/Makefile.am b/src/Makefile.am index af0ce5848bda..c9b5ab4c4a4e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -246,6 +246,7 @@ BITCOIN_CORE_H = \ node/transaction.h \ node/utxo_snapshot.h \ noui.h \ + outputtype.h \ policy/feerate.h \ policy/fees.h \ policy/policy.h \ @@ -334,7 +335,6 @@ BITCOIN_CORE_H = \ wallet/fees.h \ wallet/ismine.h \ wallet/load.h \ - wallet/psbtwallet.h \ wallet/rpcwallet.h \ wallet/salvage.h \ wallet/scriptpubkeyman.h \ @@ -498,7 +498,6 @@ libbitcoin_wallet_a_SOURCES = \ wallet/db.cpp \ wallet/fees.cpp \ wallet/load.cpp \ - wallet/psbtwallet.cpp \ wallet/rpcdump.cpp \ wallet/rpcwallet.cpp \ wallet/scriptpubkeyman.cpp \ @@ -673,6 +672,7 @@ libbitcoin_common_a_SOURCES = \ netaddress.cpp \ netbase.cpp \ net_permissions.cpp \ + outputtype.cpp \ policy/feerate.cpp \ policy/policy.cpp \ protocol.cpp \ diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 6e4e3b85eb82..b8e5f98e5f68 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -170,7 +170,8 @@ BITCOIN_TESTS += \ wallet/test/wallet_crypto_tests.cpp \ wallet/test/coinselector_tests.cpp \ wallet/test/init_tests.cpp \ - wallet/test/ismine_tests.cpp + wallet/test/ismine_tests.cpp \ + wallet/test/scriptpubkeyman_tests.cpp if USE_BDB BITCOIN_TESTS += wallet/test/db_tests.cpp diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index ed1ae637dd7b..83d11dc707a7 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -31,7 +31,8 @@ static void CoinSelection(benchmark::Bench& bench) { NodeContext node; auto chain = interfaces::MakeChain(node); - const CWallet wallet(chain.get(), "", CreateDummyWalletDatabase()); + CWallet wallet(chain.get(), "", CreateDummyWalletDatabase()); + wallet.SetupLegacyScriptPubKeyMan(); std::vector> wtxs; LOCK(wallet.cs_wallet); @@ -63,7 +64,7 @@ static void CoinSelection(benchmark::Bench& bench) typedef std::set CoinSet; static NodeContext testNode; static auto testChain = interfaces::MakeChain(testNode); -static const CWallet testWallet(testChain.get(), "", CreateDummyWalletDatabase()); +static CWallet testWallet(testChain.get(), "", CreateDummyWalletDatabase()); std::vector> wtxn; // Copied from src/wallet/test/coinselector_tests.cpp @@ -92,6 +93,7 @@ static CAmount make_hard_case(int utxos, std::vector& utxo_pool) static void BnBExhaustion(benchmark::Bench& bench) { // Setup + testWallet.SetupLegacyScriptPubKeyMan(); std::vector utxo_pool; CoinSet selection; CAmount value_ret = 0; diff --git a/src/bench/wallet_balance.cpp b/src/bench/wallet_balance.cpp index 647b8c81a9d0..677e18ff3947 100644 --- a/src/bench/wallet_balance.cpp +++ b/src/bench/wallet_balance.cpp @@ -21,6 +21,7 @@ static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const b std::unique_ptr chain = interfaces::MakeChain(node); CWallet wallet{chain.get(), "", CreateMockWalletDatabase()}; { + wallet.SetupLegacyScriptPubKeyMan(); bool first_run; if (wallet.LoadWallet(first_run) != DBErrors::LOAD_OK) assert(false); } diff --git a/src/coinjoin/client.cpp b/src/coinjoin/client.cpp index c7777d08cf66..9c5fb026b855 100644 --- a/src/coinjoin/client.cpp +++ b/src/coinjoin/client.cpp @@ -13,7 +13,6 @@ #include #include #include -#include