diff options
author | Andrew Chow <github@achow101.com> | 2023-05-25 14:08:13 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-05-25 14:40:42 -0400 |
commit | 846b2fe67ed76a678770d343153acedadfdacd0b (patch) | |
tree | 5f6e4301474f2a2470328a9205f0f42112a2f915 /src | |
parent | c61d3f02f5122b38ea8bf0029aa9dfbbf38e10d0 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/bench/wallet_balance.cpp | 2 | ||||
-rw-r--r-- | 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 099ef1635a..cafe7a0c60 100644 --- a/src/bench/wallet_balance.cpp +++ b/src/bench/wallet_balance.cpp @@ -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) { diff --git a/src/wallet/test/util.h b/src/wallet/test/util.h index fc9448632d..b1ad1c959b 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<CWallet> CreateSyncedWallet(interfaces::Chain& chain, CChain& cchain, const CKey& key); std::shared_ptr<CWallet> TestLoadWallet(WalletContext& context); |