From 846b2fe67ed76a678770d343153acedadfdacd0b Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Thu, 25 May 2023 14:08:13 -0400 Subject: [PATCH] tests: Move ADDRESS_BCRT1_UNSPENDABLE to wallet/test/util.h This static address is usable for other wallet tests and benchmarks, so make it available to them. --- src/bench/wallet_balance.cpp | 2 -- src/wallet/test/util.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bench/wallet_balance.cpp b/src/bench/wallet_balance.cpp index 099ef1635af..cafe7a0c606 100644 --- a/src/bench/wallet_balance.cpp +++ b/src/bench/wallet_balance.cpp @@ -14,8 +14,6 @@ #include -const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj"; - namespace wallet { static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const bool add_mine) { diff --git a/src/wallet/test/util.h b/src/wallet/test/util.h index fc9448632d0..b1ad1c959bd 100644 --- a/src/wallet/test/util.h +++ b/src/wallet/test/util.h @@ -32,6 +32,8 @@ static const DatabaseFormat DATABASE_FORMATS[] = { #endif }; +const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj"; + std::unique_ptr CreateSyncedWallet(interfaces::Chain& chain, CChain& cchain, const CKey& key); std::shared_ptr TestLoadWallet(WalletContext& context);