diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-03-26 12:40:27 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-03-30 17:07:28 +1000 |
commit | 7c9fe25c16d48b53a61fa2f6ff77eaf8820cb1f6 (patch) | |
tree | 9bfb4fb55f19156ae7de39242f932ff475431ce5 /src/wallet/test/wallet_test_fixture.cpp | |
parent | 2f0f056e08cd5a1435120592a9ecd212fcdb915b (diff) | |
download | bitcoin-7c9fe25c16d48b53a61fa2f6ff77eaf8820cb1f6.tar.xz |
wallet: move Assert() check into constructor
This puts it in a function body, so that __func__ is available
for reporting any assertion failure.
Diffstat (limited to 'src/wallet/test/wallet_test_fixture.cpp')
-rw-r--r-- | src/wallet/test/wallet_test_fixture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/test/wallet_test_fixture.cpp b/src/wallet/test/wallet_test_fixture.cpp index cb006dea3a..38d23b6f91 100644 --- a/src/wallet/test/wallet_test_fixture.cpp +++ b/src/wallet/test/wallet_test_fixture.cpp @@ -9,6 +9,7 @@ namespace wallet { WalletTestingSetup::WalletTestingSetup(const std::string& chainName) : TestingSetup(chainName), + m_wallet_loader{interfaces::MakeWalletLoader(*m_node.chain, *Assert(m_node.args))}, m_wallet(m_node.chain.get(), "", m_args, CreateMockWalletDatabase()) { m_wallet.LoadWallet(); |