|
|
@ -56,6 +56,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
|
|
|
uint256 hash;
|
|
|
|
uint256 hash;
|
|
|
|
|
|
|
|
|
|
|
|
LOCK(cs_main);
|
|
|
|
LOCK(cs_main);
|
|
|
|
|
|
|
|
Checkpoints::fEnabled = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Simple block creation, nothing special yet:
|
|
|
|
// Simple block creation, nothing special yet:
|
|
|
|
BOOST_CHECK(pblocktemplate = CreateNewBlock(scriptPubKey));
|
|
|
|
BOOST_CHECK(pblocktemplate = CreateNewBlock(scriptPubKey));
|
|
|
@ -258,6 +259,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
|
|
|
BOOST_FOREACH(CTransaction *tx, txFirst)
|
|
|
|
BOOST_FOREACH(CTransaction *tx, txFirst)
|
|
|
|
delete tx;
|
|
|
|
delete tx;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Checkpoints::fEnabled = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|
|
|
|