Skip to content

Commit 846b2fe

Browse files
committed
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.
1 parent c61d3f0 commit 846b2fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bench/wallet_balance.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
#include <optional>
1616

17-
const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj";
18-
1917
namespace wallet {
2018
static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const bool add_mine)
2119
{

src/wallet/test/util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ static const DatabaseFormat DATABASE_FORMATS[] = {
3232
#endif
3333
};
3434

35+
const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj";
36+
3537
std::unique_ptr<CWallet> CreateSyncedWallet(interfaces::Chain& chain, CChain& cchain, const CKey& key);
3638

3739
std::shared_ptr<CWallet> TestLoadWallet(WalletContext& context);

0 commit comments

Comments
 (0)