9 #include <test/util/mining.h> 10 #include <test/util/setup_common.h> 11 #include <test/util/wallet.h> 25 const CScript scriptSig =
CScript() << std::vector<uint8_t>(100, 0xff)
30 constexpr
size_t NUM_BLOCKS{200};
32 for (
size_t b = 0; b < NUM_BLOCKS; ++b) {
36 tx.
vin.back().scriptSig = scriptSig;
47 for (
const auto &txr : txs) {
std::shared_ptr< const CTransaction > CTransactionRef
static constexpr Amount zero()
static CTransactionRef MakeTransactionRef()
static const int COINBASE_MATURITY
Coinbase transaction outputs can only be spent after this number of new blocks (network rule)...
static constexpr Amount SATOSHI
std::vector< CTxOut > vout
const RegTestingSetup * g_testing_setup
A pointer to the current testing setup.
static void AssembleBlock(benchmark::State &state)
BENCHMARK(AssembleBlock, 700)
RecursiveMutex cs_main
Global state.
const Config & GetConfig()
std::vector< uint8_t > ToByteVector(const T &in)
Serialized script, used inside transaction inputs and outputs.
A mutable version of CTransaction.
A reference to a CScript: the Hash160 of its serialization (see script.h)
bool AcceptToMemoryPool(const Config &config, CTxMemPool &pool, TxValidationState &state, const CTransactionRef &tx, bool bypass_limits, const Amount nAbsurdFee, bool test_accept)
(try to) add transaction to memory pool