mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
test: fix test affected by "Allow LegacyScriptPubKeyMan to be null"
This commit is contained in:
parent
0fe2c99e78
commit
be54c1a04b
@ -388,7 +388,7 @@ BOOST_FIXTURE_TEST_CASE(rpc_getaddressinfo, TestChain100Setup)
|
|||||||
BOOST_FIXTURE_TEST_CASE(coin_mark_dirty_immature_credit, TestChain100Setup)
|
BOOST_FIXTURE_TEST_CASE(coin_mark_dirty_immature_credit, TestChain100Setup)
|
||||||
{
|
{
|
||||||
CWallet wallet(m_node.chain.get(), "", CreateDummyWalletDatabase());
|
CWallet wallet(m_node.chain.get(), "", CreateDummyWalletDatabase());
|
||||||
auto spk_man = wallet.GetLegacyScriptPubKeyMan();
|
auto spk_man = wallet.GetOrCreateLegacyScriptPubKeyMan();
|
||||||
CWalletTx wtx(&wallet, m_coinbase_txns.back());
|
CWalletTx wtx(&wallet, m_coinbase_txns.back());
|
||||||
|
|
||||||
LOCK2(wallet.cs_wallet, spk_man->cs_KeyStore);
|
LOCK2(wallet.cs_wallet, spk_man->cs_KeyStore);
|
||||||
|
Loading…
Reference in New Issue
Block a user