|
CTransactionRef | create_placeholder_tx (size_t num_inputs, size_t num_outputs) |
|
| TestChain100Setup (const ChainType chain_type=ChainType::REGTEST, TestOpts={}) |
|
CBlock | CreateAndProcessBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, Chainstate *chainstate=nullptr) |
| Create a new block with just given transactions, coinbase paying to scriptPubKey, and try to add it to the current chain. More...
|
|
CBlock | CreateBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, Chainstate &chainstate) |
| Create a new block with just given transactions, coinbase paying to scriptPubKey. More...
|
|
void | mineBlocks (int num_blocks) |
| Mine a series of new blocks on the active chain. More...
|
|
std::pair< CMutableTransaction, CAmount > | CreateValidTransaction (const std::vector< CTransactionRef > &input_transactions, const std::vector< COutPoint > &inputs, int input_height, const std::vector< CKey > &input_signing_keys, const std::vector< CTxOut > &outputs, const std::optional< CFeeRate > &feerate, const std::optional< uint32_t > &fee_output) |
| Create a transaction, optionally setting the fee based on the feerate. More...
|
|
CMutableTransaction | CreateValidMempoolTransaction (const std::vector< CTransactionRef > &input_transactions, const std::vector< COutPoint > &inputs, int input_height, const std::vector< CKey > &input_signing_keys, const std::vector< CTxOut > &outputs, bool submit=true) |
| Create a transaction and, optionally, submit to the mempool. More...
|
|
CMutableTransaction | CreateValidMempoolTransaction (CTransactionRef input_transaction, uint32_t input_vout, int input_height, CKey input_signing_key, CScript output_destination, CAmount output_amount=CAmount(1 *COIN), bool submit=true) |
| Create a 1-in-1-out transaction and, optionally, submit to the mempool. More...
|
|
std::vector< CTransactionRef > | PopulateMempool (FastRandomContext &det_rand, size_t num_transactions, bool submit) |
| Create transactions spending from m_coinbase_txns. More...
|
|
void | MockMempoolMinFee (const CFeeRate &target_feerate) |
| Mock the mempool minimum feerate by adding a transaction and calling TrimToSize(0), simulating the mempool "reaching capacity" and evicting by descendant feerate. More...
|
|
| TestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) |
|
| ChainTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) |
|
| ~ChainTestingSetup () |
|
void | LoadVerifyActivateChainstate () |
|
void | SeedRandomForTest (SeedRand seed) |
| Seed the global RNG state and m_rng for testing and log the seed value. More...
|
|
| BasicTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) |
|
| ~BasicTestingSetup () |
|
Definition at line 29 of file txpackage_tests.cpp.