aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/wallet_test_fixture.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-11-18 14:11:34 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-11-18 14:16:38 +0100
commit49bd6590feb83ee422e489fd3930e8b700c5b4a7 (patch)
tree92f638c4d4a9bb48bfd81b1a543367f24b47bc04 /src/wallet/test/wallet_test_fixture.h
parent49667a77e76aa709717a09916b55ff671e9c6704 (diff)
downloadbitcoin-49bd6590feb83ee422e489fd3930e8b700c5b4a7.tar.xz
tests: move pwalletMain to wallet test fixture
Scope the variable instead of using an external global; this is how test fixtures are intended to be used. Followup to #11713.
Diffstat (limited to 'src/wallet/test/wallet_test_fixture.h')
-rw-r--r--src/wallet/test/wallet_test_fixture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/test/wallet_test_fixture.h b/src/wallet/test/wallet_test_fixture.h
index a341bc698a..292d654438 100644
--- a/src/wallet/test/wallet_test_fixture.h
+++ b/src/wallet/test/wallet_test_fixture.h
@@ -7,11 +7,15 @@
#include <test/test_bitcoin.h>
+#include <wallet/wallet.h>
+
/** Testing setup and teardown for wallet.
*/
struct WalletTestingSetup: public TestingSetup {
explicit WalletTestingSetup(const std::string& chainName = CBaseChainParams::MAIN);
~WalletTestingSetup();
+
+ std::unique_ptr<CWallet> pwalletMain;
};
#endif