15 #include <boost/test/unit_test.hpp> 29 coinbaseTx.vin.resize(1);
30 coinbaseTx.vout.resize(1);
32 coinbaseTx.vout[0].nValue = 1 *
CENT;
33 coinbaseTx.vout[0].scriptPubKey = scriptPubKey;
invalid by consensus rules
const TxValidationState m_state
Contains information about why the transaction failed.
const ResultType m_result_type
Result type.
std::unique_ptr< CTxMemPool > mempool
BOOST_AUTO_TEST_SUITE_END()
Testing fixture that pre-creates a 100-block REGTEST-mode block chain.
Validation result for a single transaction mempool acceptance.
static CTransactionRef MakeTransactionRef(Tx &&txIn)
BOOST_FIXTURE_TEST_CASE(tx_mempool_reject_coinbase, TestChain100Setup)
Ensure that the mempool won't accept coinbase transactions.
std::vector< unsigned char > ToByteVector(const T &in)
#define BOOST_CHECK_EQUAL(v1, v2)
Serialized script, used inside transaction inputs and outputs.
RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate...
BOOST_AUTO_TEST_SUITE(cuckoocache_tests)
Test Suite for CuckooCache.
A mutable version of CTransaction.
static constexpr CAmount CENT
The basic transaction that is broadcasted on the network and contained in blocks. ...
std::string GetRejectReason() const
std::unique_ptr< ChainstateManager > chainman
#define BOOST_CHECK(expr)