@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
3535
3636 // P2PK compressed
3737 {
38- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
38+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
3939 keystore.SetupLegacyScriptPubKeyMan ();
4040 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
4141 scriptPubKey = GetScriptForRawPubKey (pubkeys[0 ]);
@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
5252
5353 // P2PK uncompressed
5454 {
55- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
55+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
5656 keystore.SetupLegacyScriptPubKeyMan ();
5757 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
5858 scriptPubKey = GetScriptForRawPubKey (uncompressedPubkey);
@@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
6969
7070 // P2PKH compressed
7171 {
72- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
72+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
7373 keystore.SetupLegacyScriptPubKeyMan ();
7474 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
7575 scriptPubKey = GetScriptForDestination (PKHash (pubkeys[0 ]));
@@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
8686
8787 // P2PKH uncompressed
8888 {
89- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
89+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
9090 keystore.SetupLegacyScriptPubKeyMan ();
9191 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
9292 scriptPubKey = GetScriptForDestination (PKHash (uncompressedPubkey));
@@ -103,7 +103,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
103103
104104 // P2SH
105105 {
106- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
106+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
107107 keystore.SetupLegacyScriptPubKeyMan ();
108108 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
109109
@@ -127,7 +127,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
127127
128128 // (P2PKH inside) P2SH inside P2SH (invalid)
129129 {
130- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
130+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
131131 keystore.SetupLegacyScriptPubKeyMan ();
132132 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
133133
@@ -145,7 +145,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
145145
146146 // (P2PKH inside) P2SH inside P2WSH (invalid)
147147 {
148- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
148+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
149149 keystore.SetupLegacyScriptPubKeyMan ();
150150 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
151151
@@ -163,7 +163,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
163163
164164 // P2WPKH inside P2WSH (invalid)
165165 {
166- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
166+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
167167 keystore.SetupLegacyScriptPubKeyMan ();
168168 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
169169
@@ -179,7 +179,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
179179
180180 // (P2PKH inside) P2WSH inside P2WSH (invalid)
181181 {
182- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
182+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
183183 keystore.SetupLegacyScriptPubKeyMan ();
184184 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
185185
@@ -197,7 +197,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
197197
198198 // P2WPKH compressed
199199 {
200- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
200+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
201201 keystore.SetupLegacyScriptPubKeyMan ();
202202 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
203203 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -212,7 +212,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
212212
213213 // P2WPKH uncompressed
214214 {
215- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
215+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
216216 keystore.SetupLegacyScriptPubKeyMan ();
217217 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
218218 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (uncompressedKey));
@@ -231,7 +231,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
231231
232232 // scriptPubKey multisig
233233 {
234- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
234+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
235235 keystore.SetupLegacyScriptPubKeyMan ();
236236 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
237237
@@ -262,7 +262,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
262262
263263 // P2SH multisig
264264 {
265- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
265+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
266266 keystore.SetupLegacyScriptPubKeyMan ();
267267 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
268268 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (uncompressedKey));
@@ -283,7 +283,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
283283
284284 // P2WSH multisig with compressed keys
285285 {
286- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
286+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
287287 keystore.SetupLegacyScriptPubKeyMan ();
288288 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
289289 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -309,7 +309,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
309309
310310 // P2WSH multisig with uncompressed key
311311 {
312- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
312+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
313313 keystore.SetupLegacyScriptPubKeyMan ();
314314 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
315315 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (uncompressedKey));
@@ -335,7 +335,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
335335
336336 // P2WSH multisig wrapped in P2SH
337337 {
338- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
338+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
339339 keystore.SetupLegacyScriptPubKeyMan ();
340340 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
341341
@@ -362,7 +362,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
362362
363363 // OP_RETURN
364364 {
365- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
365+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
366366 keystore.SetupLegacyScriptPubKeyMan ();
367367 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
368368 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -376,7 +376,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
376376
377377 // witness unspendable
378378 {
379- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
379+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
380380 keystore.SetupLegacyScriptPubKeyMan ();
381381 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
382382 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -390,7 +390,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
390390
391391 // witness unknown
392392 {
393- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
393+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
394394 keystore.SetupLegacyScriptPubKeyMan ();
395395 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
396396 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -404,7 +404,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
404404
405405 // Nonstandard
406406 {
407- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
407+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
408408 keystore.SetupLegacyScriptPubKeyMan ();
409409 LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
410410 BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
0 commit comments