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.
This commit is contained in:
Andrew Chow committed 2023-05-25 14:40:42 -04:00
1 parent c61d3f02f5
commit 846b2fe67e
2 files changed
+2 -2

No files matched your search

-2
View File
@@ -14,8 +14,6 @@
#include <optional>
const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj";
namespace wallet {
static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const bool add_mine)
{
+2
View File
@@ -32,6 +32,8 @@ static const DatabaseFormat DATABASE_FORMATS[] = {
#endif
};
const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj";
std::unique_ptr<CWallet> CreateSyncedWallet(interfaces::Chain& chain, CChain& cchain, const CKey& key);
std::shared_ptr<CWallet> TestLoadWallet(WalletContext& context);