Skip to content

Commit 132ea9b

Browse files
committed
miner_tests: Disable checkpoints so they don't fail the subsidy-change test
1 parent df08a62 commit 132ea9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/miner_tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
5656
uint256 hash;
5757

5858
LOCK(cs_main);
59+
Checkpoints::fEnabled = false;
5960

6061
// Simple block creation, nothing special yet:
6162
BOOST_CHECK(pblocktemplate = CreateNewBlock(scriptPubKey));
@@ -258,6 +259,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
258259
BOOST_FOREACH(CTransaction *tx, txFirst)
259260
delete tx;
260261

262+
Checkpoints::fEnabled = true;
261263
}
262264

263265
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)