Changeset View
Changeset View
Standalone View
Standalone View
src/test/txvalidation_tests.cpp
Show All 24 Lines | BOOST_FIXTURE_TEST_CASE(tx_mempool_reject_coinbase, TestChain100Setup) { | ||||
coinbaseTx.nVersion = 1; | coinbaseTx.nVersion = 1; | ||||
coinbaseTx.vin.resize(1); | coinbaseTx.vin.resize(1); | ||||
coinbaseTx.vout.resize(1); | coinbaseTx.vout.resize(1); | ||||
coinbaseTx.vin[0].scriptSig = CScript() << OP_11 << OP_EQUAL; | coinbaseTx.vin[0].scriptSig = CScript() << OP_11 << OP_EQUAL; | ||||
coinbaseTx.vout[0].nValue = 1 * CENT; | coinbaseTx.vout[0].nValue = 1 * CENT; | ||||
coinbaseTx.vout[0].scriptPubKey = scriptPubKey; | coinbaseTx.vout[0].scriptPubKey = scriptPubKey; | ||||
assert(CTransaction(coinbaseTx).IsCoinBase()); | BOOST_CHECK(CTransaction(coinbaseTx).IsCoinBase()); | ||||
CValidationState state; | CValidationState state; | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
unsigned int initialPoolSize = g_mempool.size(); | unsigned int initialPoolSize = g_mempool.size(); | ||||
BOOST_CHECK_EQUAL( | BOOST_CHECK_EQUAL( | ||||
Show All 19 Lines |