Skip to content

Commit 09fe346

Browse files
committed
Avoid -Wshadow warnings in wallet_tests
Warnings introduced by commit e2e2f4c "Return errors from importmulti if complete rescans are not successful" and reported by Pavel Janík <[email protected]> in bitcoin/bitcoin#9773 and bitcoin/bitcoin#9827 wallet/test/wallet_tests.cpp: In member function ‘void wallet_tests::rescan::test_method()’: wallet/test/wallet_tests.cpp:377:17: warning: declaration of ‘wallet’ shadows a global declaration [-Wshadow] CWallet wallet;
1 parent bed5b30 commit 09fe346

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

src/wallet/test/wallet_tests.cpp

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ typedef set<pair<const CWalletTx*,unsigned int> > CoinSet;
3535

3636
BOOST_FIXTURE_TEST_SUITE(wallet_tests, WalletTestingSetup)
3737

38-
static const CWallet wallet;
38+
static const CWallet testWallet;
3939
static vector<COutput> vCoins;
4040

4141
static void add_coin(const CAmount& nValue, int nAge = 6*24, bool fIsFromMe = false, int nInput=0)
@@ -50,7 +50,7 @@ static void add_coin(const CAmount& nValue, int nAge = 6*24, bool fIsFromMe = fa
5050
// so stop vin being empty, and cache a non-zero Debit to fake out IsFromMe()
5151
tx.vin.resize(1);
5252
}
53-
std::unique_ptr<CWalletTx> wtx(new CWalletTx(&wallet, MakeTransactionRef(std::move(tx))));
53+
std::unique_ptr<CWalletTx> wtx(new CWalletTx(&testWallet, MakeTransactionRef(std::move(tx))));
5454
if (fIsFromMe)
5555
{
5656
wtx->fDebitCached = true;
@@ -78,32 +78,32 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
7878
CoinSet setCoinsRet, setCoinsRet2;
7979
CAmount nValueRet;
8080

81-
LOCK(wallet.cs_wallet);
81+
LOCK(testWallet.cs_wallet);
8282

8383
// test multiple times to allow for differences in the shuffle order
8484
for (int i = 0; i < RUN_TESTS; i++)
8585
{
8686
empty_wallet();
8787

8888
// with an empty wallet we can't even pay one cent
89-
BOOST_CHECK(!wallet.SelectCoinsMinConf( 1 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
89+
BOOST_CHECK(!testWallet.SelectCoinsMinConf( 1 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
9090

9191
add_coin(1*CENT, 4); // add a new 1 cent coin
9292

9393
// with a new 1 cent coin, we still can't find a mature 1 cent
94-
BOOST_CHECK(!wallet.SelectCoinsMinConf( 1 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
94+
BOOST_CHECK(!testWallet.SelectCoinsMinConf( 1 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
9595

9696
// but we can find a new 1 cent
97-
BOOST_CHECK( wallet.SelectCoinsMinConf( 1 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
97+
BOOST_CHECK( testWallet.SelectCoinsMinConf( 1 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
9898
BOOST_CHECK_EQUAL(nValueRet, 1 * CENT);
9999

100100
add_coin(2*CENT); // add a mature 2 cent coin
101101

102102
// we can't make 3 cents of mature coins
103-
BOOST_CHECK(!wallet.SelectCoinsMinConf( 3 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
103+
BOOST_CHECK(!testWallet.SelectCoinsMinConf( 3 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
104104

105105
// we can make 3 cents of new coins
106-
BOOST_CHECK( wallet.SelectCoinsMinConf( 3 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
106+
BOOST_CHECK( testWallet.SelectCoinsMinConf( 3 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
107107
BOOST_CHECK_EQUAL(nValueRet, 3 * CENT);
108108

109109
add_coin(5*CENT); // add a mature 5 cent coin,
@@ -113,33 +113,33 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
113113
// now we have new: 1+10=11 (of which 10 was self-sent), and mature: 2+5+20=27. total = 38
114114

115115
// we can't make 38 cents only if we disallow new coins:
116-
BOOST_CHECK(!wallet.SelectCoinsMinConf(38 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
116+
BOOST_CHECK(!testWallet.SelectCoinsMinConf(38 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
117117
// we can't even make 37 cents if we don't allow new coins even if they're from us
118-
BOOST_CHECK(!wallet.SelectCoinsMinConf(38 * CENT, 6, 6, 0, vCoins, setCoinsRet, nValueRet));
118+
BOOST_CHECK(!testWallet.SelectCoinsMinConf(38 * CENT, 6, 6, 0, vCoins, setCoinsRet, nValueRet));
119119
// but we can make 37 cents if we accept new coins from ourself
120-
BOOST_CHECK( wallet.SelectCoinsMinConf(37 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
120+
BOOST_CHECK( testWallet.SelectCoinsMinConf(37 * CENT, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
121121
BOOST_CHECK_EQUAL(nValueRet, 37 * CENT);
122122
// and we can make 38 cents if we accept all new coins
123-
BOOST_CHECK( wallet.SelectCoinsMinConf(38 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
123+
BOOST_CHECK( testWallet.SelectCoinsMinConf(38 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
124124
BOOST_CHECK_EQUAL(nValueRet, 38 * CENT);
125125

126126
// try making 34 cents from 1,2,5,10,20 - we can't do it exactly
127-
BOOST_CHECK( wallet.SelectCoinsMinConf(34 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
127+
BOOST_CHECK( testWallet.SelectCoinsMinConf(34 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
128128
BOOST_CHECK_EQUAL(nValueRet, 35 * CENT); // but 35 cents is closest
129129
BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U); // the best should be 20+10+5. it's incredibly unlikely the 1 or 2 got included (but possible)
130130

131131
// when we try making 7 cents, the smaller coins (1,2,5) are enough. We should see just 2+5
132-
BOOST_CHECK( wallet.SelectCoinsMinConf( 7 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
132+
BOOST_CHECK( testWallet.SelectCoinsMinConf( 7 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
133133
BOOST_CHECK_EQUAL(nValueRet, 7 * CENT);
134134
BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U);
135135

136136
// when we try making 8 cents, the smaller coins (1,2,5) are exactly enough.
137-
BOOST_CHECK( wallet.SelectCoinsMinConf( 8 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
137+
BOOST_CHECK( testWallet.SelectCoinsMinConf( 8 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
138138
BOOST_CHECK(nValueRet == 8 * CENT);
139139
BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U);
140140

141141
// when we try making 9 cents, no subset of smaller coins is enough, and we get the next bigger coin (10)
142-
BOOST_CHECK( wallet.SelectCoinsMinConf( 9 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
142+
BOOST_CHECK( testWallet.SelectCoinsMinConf( 9 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
143143
BOOST_CHECK_EQUAL(nValueRet, 10 * CENT);
144144
BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U);
145145

@@ -153,30 +153,30 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
153153
add_coin(30*CENT); // now we have 6+7+8+20+30 = 71 cents total
154154

155155
// check that we have 71 and not 72
156-
BOOST_CHECK( wallet.SelectCoinsMinConf(71 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
157-
BOOST_CHECK(!wallet.SelectCoinsMinConf(72 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
156+
BOOST_CHECK( testWallet.SelectCoinsMinConf(71 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
157+
BOOST_CHECK(!testWallet.SelectCoinsMinConf(72 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
158158

159159
// now try making 16 cents. the best smaller coins can do is 6+7+8 = 21; not as good at the next biggest coin, 20
160-
BOOST_CHECK( wallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
160+
BOOST_CHECK( testWallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
161161
BOOST_CHECK_EQUAL(nValueRet, 20 * CENT); // we should get 20 in one coin
162162
BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U);
163163

164164
add_coin( 5*CENT); // now we have 5+6+7+8+20+30 = 75 cents total
165165

166166
// now if we try making 16 cents again, the smaller coins can make 5+6+7 = 18 cents, better than the next biggest coin, 20
167-
BOOST_CHECK( wallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
167+
BOOST_CHECK( testWallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
168168
BOOST_CHECK_EQUAL(nValueRet, 18 * CENT); // we should get 18 in 3 coins
169169
BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U);
170170

171171
add_coin( 18*CENT); // now we have 5+6+7+8+18+20+30
172172

173173
// and now if we try making 16 cents again, the smaller coins can make 5+6+7 = 18 cents, the same as the next biggest coin, 18
174-
BOOST_CHECK( wallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
174+
BOOST_CHECK( testWallet.SelectCoinsMinConf(16 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
175175
BOOST_CHECK_EQUAL(nValueRet, 18 * CENT); // we should get 18 in 1 coin
176176
BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U); // because in the event of a tie, the biggest coin wins
177177

178178
// now try making 11 cents. we should get 5+6
179-
BOOST_CHECK( wallet.SelectCoinsMinConf(11 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
179+
BOOST_CHECK( testWallet.SelectCoinsMinConf(11 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
180180
BOOST_CHECK_EQUAL(nValueRet, 11 * CENT);
181181
BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U);
182182

@@ -185,11 +185,11 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
185185
add_coin( 2*COIN);
186186
add_coin( 3*COIN);
187187
add_coin( 4*COIN); // now we have 5+6+7+8+18+20+30+100+200+300+400 = 1094 cents
188-
BOOST_CHECK( wallet.SelectCoinsMinConf(95 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
188+
BOOST_CHECK( testWallet.SelectCoinsMinConf(95 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
189189
BOOST_CHECK_EQUAL(nValueRet, 1 * COIN); // we should get 1 BTC in 1 coin
190190
BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U);
191191

192-
BOOST_CHECK( wallet.SelectCoinsMinConf(195 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
192+
BOOST_CHECK( testWallet.SelectCoinsMinConf(195 * CENT, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
193193
BOOST_CHECK_EQUAL(nValueRet, 2 * COIN); // we should get 2 BTC in 1 coin
194194
BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U);
195195

@@ -204,22 +204,22 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
204204

205205
// try making 1 * MIN_CHANGE from the 1.5 * MIN_CHANGE
206206
// we'll get change smaller than MIN_CHANGE whatever happens, so can expect MIN_CHANGE exactly
207-
BOOST_CHECK( wallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
207+
BOOST_CHECK( testWallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
208208
BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE);
209209

210210
// but if we add a bigger coin, small change is avoided
211211
add_coin(1111*MIN_CHANGE);
212212

213213
// try making 1 from 0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 1111 = 1112.5
214-
BOOST_CHECK( wallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
214+
BOOST_CHECK( testWallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
215215
BOOST_CHECK_EQUAL(nValueRet, 1 * MIN_CHANGE); // we should get the exact amount
216216

217217
// if we add more small coins:
218218
add_coin(MIN_CHANGE * 6 / 10);
219219
add_coin(MIN_CHANGE * 7 / 10);
220220

221221
// and try again to make 1.0 * MIN_CHANGE
222-
BOOST_CHECK( wallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
222+
BOOST_CHECK( testWallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
223223
BOOST_CHECK_EQUAL(nValueRet, 1 * MIN_CHANGE); // we should get the exact amount
224224

225225
// run the 'mtgox' test (see http://blockexplorer.com/tx/29a3efd3ef04f9153d47a990bd7b048a4b2d213daaa5fb8ed670fb85f13bdbcf)
@@ -228,7 +228,7 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
228228
for (int j = 0; j < 20; j++)
229229
add_coin(50000 * COIN);
230230

231-
BOOST_CHECK( wallet.SelectCoinsMinConf(500000 * COIN, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
231+
BOOST_CHECK( testWallet.SelectCoinsMinConf(500000 * COIN, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
232232
BOOST_CHECK_EQUAL(nValueRet, 500000 * COIN); // we should get the exact amount
233233
BOOST_CHECK_EQUAL(setCoinsRet.size(), 10U); // in ten coins
234234

@@ -241,7 +241,7 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
241241
add_coin(MIN_CHANGE * 6 / 10);
242242
add_coin(MIN_CHANGE * 7 / 10);
243243
add_coin(1111 * MIN_CHANGE);
244-
BOOST_CHECK( wallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
244+
BOOST_CHECK( testWallet.SelectCoinsMinConf(1 * MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
245245
BOOST_CHECK_EQUAL(nValueRet, 1111 * MIN_CHANGE); // we get the bigger coin
246246
BOOST_CHECK_EQUAL(setCoinsRet.size(), 1U);
247247

@@ -251,7 +251,7 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
251251
add_coin(MIN_CHANGE * 6 / 10);
252252
add_coin(MIN_CHANGE * 8 / 10);
253253
add_coin(1111 * MIN_CHANGE);
254-
BOOST_CHECK( wallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
254+
BOOST_CHECK( testWallet.SelectCoinsMinConf(MIN_CHANGE, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
255255
BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE); // we should get the exact amount
256256
BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U); // in two coins 0.4+0.6
257257

@@ -262,12 +262,12 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
262262
add_coin(MIN_CHANGE * 100);
263263

264264
// trying to make 100.01 from these three coins
265-
BOOST_CHECK(wallet.SelectCoinsMinConf(MIN_CHANGE * 10001 / 100, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
265+
BOOST_CHECK(testWallet.SelectCoinsMinConf(MIN_CHANGE * 10001 / 100, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
266266
BOOST_CHECK_EQUAL(nValueRet, MIN_CHANGE * 10105 / 100); // we should get all coins
267267
BOOST_CHECK_EQUAL(setCoinsRet.size(), 3U);
268268

269269
// but if we try to make 99.9, we should take the bigger of the two small coins to avoid small change
270-
BOOST_CHECK(wallet.SelectCoinsMinConf(MIN_CHANGE * 9990 / 100, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
270+
BOOST_CHECK(testWallet.SelectCoinsMinConf(MIN_CHANGE * 9990 / 100, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
271271
BOOST_CHECK_EQUAL(nValueRet, 101 * MIN_CHANGE);
272272
BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U);
273273

@@ -277,7 +277,7 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
277277
// Create 676 inputs (= (old MAX_STANDARD_TX_SIZE == 100000) / 148 bytes per input)
278278
for (uint16_t j = 0; j < 676; j++)
279279
add_coin(amt);
280-
BOOST_CHECK(wallet.SelectCoinsMinConf(2000, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
280+
BOOST_CHECK(testWallet.SelectCoinsMinConf(2000, 1, 1, 0, vCoins, setCoinsRet, nValueRet));
281281
if (amt - 2000 < MIN_CHANGE) {
282282
// needs more than one input:
283283
uint16_t returnSize = std::ceil((2000.0 + MIN_CHANGE)/amt);
@@ -299,17 +299,17 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
299299

300300
// picking 50 from 100 coins doesn't depend on the shuffle,
301301
// but does depend on randomness in the stochastic approximation code
302-
BOOST_CHECK(wallet.SelectCoinsMinConf(50 * COIN, 1, 6, 0, vCoins, setCoinsRet , nValueRet));
303-
BOOST_CHECK(wallet.SelectCoinsMinConf(50 * COIN, 1, 6, 0, vCoins, setCoinsRet2, nValueRet));
302+
BOOST_CHECK(testWallet.SelectCoinsMinConf(50 * COIN, 1, 6, 0, vCoins, setCoinsRet , nValueRet));
303+
BOOST_CHECK(testWallet.SelectCoinsMinConf(50 * COIN, 1, 6, 0, vCoins, setCoinsRet2, nValueRet));
304304
BOOST_CHECK(!equal_sets(setCoinsRet, setCoinsRet2));
305305

306306
int fails = 0;
307307
for (int j = 0; j < RANDOM_REPEATS; j++)
308308
{
309309
// selecting 1 from 100 identical coins depends on the shuffle; this test will fail 1% of the time
310310
// run the test RANDOM_REPEATS times and only complain if all of them fail
311-
BOOST_CHECK(wallet.SelectCoinsMinConf(COIN, 1, 6, 0, vCoins, setCoinsRet , nValueRet));
312-
BOOST_CHECK(wallet.SelectCoinsMinConf(COIN, 1, 6, 0, vCoins, setCoinsRet2, nValueRet));
311+
BOOST_CHECK(testWallet.SelectCoinsMinConf(COIN, 1, 6, 0, vCoins, setCoinsRet , nValueRet));
312+
BOOST_CHECK(testWallet.SelectCoinsMinConf(COIN, 1, 6, 0, vCoins, setCoinsRet2, nValueRet));
313313
if (equal_sets(setCoinsRet, setCoinsRet2))
314314
fails++;
315315
}
@@ -329,8 +329,8 @@ BOOST_AUTO_TEST_CASE(coin_selection_tests)
329329
{
330330
// selecting 1 from 100 identical coins depends on the shuffle; this test will fail 1% of the time
331331
// run the test RANDOM_REPEATS times and only complain if all of them fail
332-
BOOST_CHECK(wallet.SelectCoinsMinConf(90*CENT, 1, 6, 0, vCoins, setCoinsRet , nValueRet));
333-
BOOST_CHECK(wallet.SelectCoinsMinConf(90*CENT, 1, 6, 0, vCoins, setCoinsRet2, nValueRet));
332+
BOOST_CHECK(testWallet.SelectCoinsMinConf(90*CENT, 1, 6, 0, vCoins, setCoinsRet , nValueRet));
333+
BOOST_CHECK(testWallet.SelectCoinsMinConf(90*CENT, 1, 6, 0, vCoins, setCoinsRet2, nValueRet));
334334
if (equal_sets(setCoinsRet, setCoinsRet2))
335335
fails++;
336336
}
@@ -345,7 +345,7 @@ BOOST_AUTO_TEST_CASE(ApproximateBestSubset)
345345
CoinSet setCoinsRet;
346346
CAmount nValueRet;
347347

348-
LOCK(wallet.cs_wallet);
348+
LOCK(testWallet.cs_wallet);
349349

350350
empty_wallet();
351351

@@ -354,7 +354,7 @@ BOOST_AUTO_TEST_CASE(ApproximateBestSubset)
354354
add_coin(1000 * COIN);
355355
add_coin(3 * COIN);
356356

357-
BOOST_CHECK(wallet.SelectCoinsMinConf(1003 * COIN, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
357+
BOOST_CHECK(testWallet.SelectCoinsMinConf(1003 * COIN, 1, 6, 0, vCoins, setCoinsRet, nValueRet));
358358
BOOST_CHECK_EQUAL(nValueRet, 1003 * COIN);
359359
BOOST_CHECK_EQUAL(setCoinsRet.size(), 2U);
360360

0 commit comments

Comments
 (0)