Skip to content

Commit

Permalink
test: fix test affected by "Allow LegacyScriptPubKeyMan to be null"
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Mar 27, 2023
1 parent 5b22a96 commit 383f109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/test/wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ BOOST_FIXTURE_TEST_CASE(rpc_getaddressinfo, TestChain100Setup)
BOOST_FIXTURE_TEST_CASE(coin_mark_dirty_immature_credit, TestChain100Setup)
{
CWallet wallet(m_node.chain.get(), "", CreateDummyWalletDatabase());
auto spk_man = wallet.GetLegacyScriptPubKeyMan();
auto spk_man = wallet.GetOrCreateLegacyScriptPubKeyMan();
CWalletTx wtx(&wallet, m_coinbase_txns.back());

LOCK2(wallet.cs_wallet, spk_man->cs_KeyStore);
Expand Down

0 comments on commit 383f109

Please sign in to comment.