@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
35
35
36
36
// P2PK compressed
37
37
{
38
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
38
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
39
39
keystore.SetupLegacyScriptPubKeyMan ();
40
40
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
41
41
scriptPubKey = GetScriptForRawPubKey (pubkeys[0 ]);
@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
52
52
53
53
// P2PK uncompressed
54
54
{
55
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
55
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
56
56
keystore.SetupLegacyScriptPubKeyMan ();
57
57
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
58
58
scriptPubKey = GetScriptForRawPubKey (uncompressedPubkey);
@@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
69
69
70
70
// P2PKH compressed
71
71
{
72
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
72
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
73
73
keystore.SetupLegacyScriptPubKeyMan ();
74
74
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
75
75
scriptPubKey = GetScriptForDestination (PKHash (pubkeys[0 ]));
@@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
86
86
87
87
// P2PKH uncompressed
88
88
{
89
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
89
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
90
90
keystore.SetupLegacyScriptPubKeyMan ();
91
91
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
92
92
scriptPubKey = GetScriptForDestination (PKHash (uncompressedPubkey));
@@ -103,7 +103,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
103
103
104
104
// P2SH
105
105
{
106
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
106
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
107
107
keystore.SetupLegacyScriptPubKeyMan ();
108
108
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
109
109
@@ -127,7 +127,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
127
127
128
128
// (P2PKH inside) P2SH inside P2SH (invalid)
129
129
{
130
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
130
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
131
131
keystore.SetupLegacyScriptPubKeyMan ();
132
132
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
133
133
@@ -145,7 +145,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
145
145
146
146
// (P2PKH inside) P2SH inside P2WSH (invalid)
147
147
{
148
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
148
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
149
149
keystore.SetupLegacyScriptPubKeyMan ();
150
150
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
151
151
@@ -163,7 +163,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
163
163
164
164
// P2WPKH inside P2WSH (invalid)
165
165
{
166
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
166
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
167
167
keystore.SetupLegacyScriptPubKeyMan ();
168
168
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
169
169
@@ -179,7 +179,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
179
179
180
180
// (P2PKH inside) P2WSH inside P2WSH (invalid)
181
181
{
182
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
182
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
183
183
keystore.SetupLegacyScriptPubKeyMan ();
184
184
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
185
185
@@ -197,7 +197,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
197
197
198
198
// P2WPKH compressed
199
199
{
200
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
200
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
201
201
keystore.SetupLegacyScriptPubKeyMan ();
202
202
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
203
203
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -212,7 +212,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
212
212
213
213
// P2WPKH uncompressed
214
214
{
215
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
215
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
216
216
keystore.SetupLegacyScriptPubKeyMan ();
217
217
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
218
218
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (uncompressedKey));
@@ -231,7 +231,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
231
231
232
232
// scriptPubKey multisig
233
233
{
234
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
234
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
235
235
keystore.SetupLegacyScriptPubKeyMan ();
236
236
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
237
237
@@ -262,7 +262,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
262
262
263
263
// P2SH multisig
264
264
{
265
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
265
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
266
266
keystore.SetupLegacyScriptPubKeyMan ();
267
267
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
268
268
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (uncompressedKey));
@@ -283,7 +283,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
283
283
284
284
// P2WSH multisig with compressed keys
285
285
{
286
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
286
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
287
287
keystore.SetupLegacyScriptPubKeyMan ();
288
288
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
289
289
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -309,7 +309,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
309
309
310
310
// P2WSH multisig with uncompressed key
311
311
{
312
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
312
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
313
313
keystore.SetupLegacyScriptPubKeyMan ();
314
314
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
315
315
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (uncompressedKey));
@@ -335,7 +335,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
335
335
336
336
// P2WSH multisig wrapped in P2SH
337
337
{
338
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
338
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
339
339
keystore.SetupLegacyScriptPubKeyMan ();
340
340
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
341
341
@@ -362,7 +362,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
362
362
363
363
// OP_RETURN
364
364
{
365
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
365
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
366
366
keystore.SetupLegacyScriptPubKeyMan ();
367
367
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
368
368
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -376,7 +376,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
376
376
377
377
// witness unspendable
378
378
{
379
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
379
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
380
380
keystore.SetupLegacyScriptPubKeyMan ();
381
381
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
382
382
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -390,7 +390,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
390
390
391
391
// witness unknown
392
392
{
393
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
393
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
394
394
keystore.SetupLegacyScriptPubKeyMan ();
395
395
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
396
396
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
@@ -404,7 +404,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
404
404
405
405
// Nonstandard
406
406
{
407
- CWallet keystore (chain.get (), WalletLocation (), WalletDatabase::CreateDummy ());
407
+ CWallet keystore (chain.get (), WalletLocation (), CreateDummyWalletDatabase ());
408
408
keystore.SetupLegacyScriptPubKeyMan ();
409
409
LOCK (keystore.GetLegacyScriptPubKeyMan ()->cs_KeyStore );
410
410
BOOST_CHECK (keystore.GetLegacyScriptPubKeyMan ()->AddKey (keys[0 ]));
0 commit comments