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 2023-05-25 14:08:13 -04:00
parent c61d3f02f5
commit 846b2fe67e
2 changed files with 2 additions and 2 deletions

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)
{

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);