mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
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:
parent
c61d3f02f5
commit
846b2fe67e
2 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj";
|
|
||||||
|
|
||||||
namespace wallet {
|
namespace wallet {
|
||||||
static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const bool add_mine)
|
static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const bool add_mine)
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,8 @@ static const DatabaseFormat DATABASE_FORMATS[] = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj";
|
||||||
|
|
||||||
std::unique_ptr<CWallet> CreateSyncedWallet(interfaces::Chain& chain, CChain& cchain, const CKey& key);
|
std::unique_ptr<CWallet> CreateSyncedWallet(interfaces::Chain& chain, CChain& cchain, const CKey& key);
|
||||||
|
|
||||||
std::shared_ptr<CWallet> TestLoadWallet(WalletContext& context);
|
std::shared_ptr<CWallet> TestLoadWallet(WalletContext& context);
|
||||||
|
|
Loading…
Add table
Reference in a new issue