From fa46ac3127142358116c8473741708b3bb70ca15 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 10 Apr 2019 15:06:31 -0400 Subject: bench: Add wallet_balance benchmarks --- src/test/util.cpp | 3 ++- src/test/util.h | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/util.cpp b/src/test/util.cpp index 7c348c5b25..05d3a97a59 100644 --- a/src/test/util.cpp +++ b/src/test/util.cpp @@ -22,6 +22,8 @@ #include +const std::string ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj"; + #ifdef ENABLE_WALLET std::string getnewaddress(CWallet& w) { @@ -75,7 +77,6 @@ CTxIn MineBlock(const CScript& coinbase_scriptPubKey) return CTxIn{block->vtx[0]->GetHash(), 0}; } - std::shared_ptr PrepareBlock(const CScript& coinbase_scriptPubKey) { auto block = std::make_shared( diff --git a/src/test/util.h b/src/test/util.h index e51e924f65..8ba647ec3f 100644 --- a/src/test/util.h +++ b/src/test/util.h @@ -13,6 +13,10 @@ class CScript; class CTxIn; class CWallet; +// Constants // + +extern const std::string ADDRESS_BCRT1_UNSPENDABLE; + // Lower-level utils // /** Returns the generated coin */ -- cgit v1.2.3