Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/setup_common.h
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | struct TestChain100Setup : public RegTestingSetup { | ||||
* | * | ||||
* @param input_transaction The transaction to spend | * @param input_transaction The transaction to spend | ||||
* @param input_vout The vout to spend from the input_transaction | * @param input_vout The vout to spend from the input_transaction | ||||
* @param input_height The height of the block that included the | * @param input_height The height of the block that included the | ||||
* input_transaction | * input_transaction | ||||
* @param input_signing_key The key to spend the input_transaction | * @param input_signing_key The key to spend the input_transaction | ||||
* @param output_destination Where to send the output | * @param output_destination Where to send the output | ||||
* @param output_amount How much to send | * @param output_amount How much to send | ||||
* @param submit Whether or not to submit to mempool | |||||
*/ | */ | ||||
CMutableTransaction CreateValidMempoolTransaction( | CMutableTransaction CreateValidMempoolTransaction( | ||||
CTransactionRef input_transaction, int input_vout, int input_height, | CTransactionRef input_transaction, int input_vout, int input_height, | ||||
CKey input_signing_key, CScript output_destination, | CKey input_signing_key, CScript output_destination, | ||||
Amount output_amount = COIN); | Amount output_amount = COIN, bool submit = true); | ||||
~TestChain100Setup(); | ~TestChain100Setup(); | ||||
bool m_deterministic; | bool m_deterministic; | ||||
// For convenience, coinbase transactions. | // For convenience, coinbase transactions. | ||||
std::vector<CTransactionRef> m_coinbase_txns; | std::vector<CTransactionRef> m_coinbase_txns; | ||||
// private/public key needed to spend coinbase transactions. | // private/public key needed to spend coinbase transactions. | ||||
CKey coinbaseKey; | CKey coinbaseKey; | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |