|
14 | 14 |
|
15 | 15 | #include <boost/test/unit_test.hpp>
|
16 | 16 |
|
17 |
| -std::vector<CTransactionRef> extra_txn; |
| 17 | +const std::vector<CTransactionRef> empty_extra_txn; |
18 | 18 |
|
19 | 19 | BOOST_FIXTURE_TEST_SUITE(blockencodings_tests, RegTestingSetup)
|
20 | 20 |
|
@@ -75,7 +75,7 @@ BOOST_AUTO_TEST_CASE(SimpleRoundTripTest)
|
75 | 75 | stream >> shortIDs2;
|
76 | 76 |
|
77 | 77 | PartiallyDownloadedBlock partialBlock(&pool);
|
78 |
| - BOOST_CHECK(partialBlock.InitData(shortIDs2, extra_txn) == READ_STATUS_OK); |
| 78 | + BOOST_CHECK(partialBlock.InitData(shortIDs2, empty_extra_txn) == READ_STATUS_OK); |
79 | 79 | BOOST_CHECK( partialBlock.IsTxAvailable(0));
|
80 | 80 | BOOST_CHECK(!partialBlock.IsTxAvailable(1));
|
81 | 81 | BOOST_CHECK( partialBlock.IsTxAvailable(2));
|
@@ -165,7 +165,7 @@ BOOST_AUTO_TEST_CASE(NonCoinbasePreforwardRTTest)
|
165 | 165 | stream >> shortIDs2;
|
166 | 166 |
|
167 | 167 | PartiallyDownloadedBlock partialBlock(&pool);
|
168 |
| - BOOST_CHECK(partialBlock.InitData(shortIDs2, extra_txn) == READ_STATUS_OK); |
| 168 | + BOOST_CHECK(partialBlock.InitData(shortIDs2, empty_extra_txn) == READ_STATUS_OK); |
169 | 169 | BOOST_CHECK(!partialBlock.IsTxAvailable(0));
|
170 | 170 | BOOST_CHECK( partialBlock.IsTxAvailable(1));
|
171 | 171 | BOOST_CHECK( partialBlock.IsTxAvailable(2));
|
@@ -235,7 +235,7 @@ BOOST_AUTO_TEST_CASE(SufficientPreforwardRTTest)
|
235 | 235 | stream >> shortIDs2;
|
236 | 236 |
|
237 | 237 | PartiallyDownloadedBlock partialBlock(&pool);
|
238 |
| - BOOST_CHECK(partialBlock.InitData(shortIDs2, extra_txn) == READ_STATUS_OK); |
| 238 | + BOOST_CHECK(partialBlock.InitData(shortIDs2, empty_extra_txn) == READ_STATUS_OK); |
239 | 239 | BOOST_CHECK( partialBlock.IsTxAvailable(0));
|
240 | 240 | BOOST_CHECK( partialBlock.IsTxAvailable(1));
|
241 | 241 | BOOST_CHECK( partialBlock.IsTxAvailable(2));
|
@@ -290,7 +290,7 @@ BOOST_AUTO_TEST_CASE(EmptyBlockRoundTripTest)
|
290 | 290 | stream >> shortIDs2;
|
291 | 291 |
|
292 | 292 | PartiallyDownloadedBlock partialBlock(&pool);
|
293 |
| - BOOST_CHECK(partialBlock.InitData(shortIDs2, extra_txn) == READ_STATUS_OK); |
| 293 | + BOOST_CHECK(partialBlock.InitData(shortIDs2, empty_extra_txn) == READ_STATUS_OK); |
294 | 294 | BOOST_CHECK(partialBlock.IsTxAvailable(0));
|
295 | 295 |
|
296 | 296 | CBlock block2;
|
|
0 commit comments