Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/transaction_utils.h
Show All 18 Lines | |||||
// create spending transaction | // create spending transaction | ||||
// [1 input with referenced transaction outpoint, scriptSig => | // [1 input with referenced transaction outpoint, scriptSig => | ||||
// 1 output with empty scriptPubKey, full value of referenced transaction] | // 1 output with empty scriptPubKey, full value of referenced transaction] | ||||
CMutableTransaction BuildSpendingTransaction(const CScript &scriptSig, | CMutableTransaction BuildSpendingTransaction(const CScript &scriptSig, | ||||
const CTransaction &txCredit); | const CTransaction &txCredit); | ||||
// Helper: create two dummy transactions, each with two outputs. | // Helper: create two dummy transactions, each with two outputs. | ||||
// The first has nValues[0] and nValues[1] outputs paid to a TX_PUBKEY, | // The first has nValues[0] and nValues[1] outputs paid to a TxoutType::PUBKEY, | ||||
// the second nValues[2] and nValues[3] outputs paid to a TX_PUBKEYHASH. | // the second nValues[2] and nValues[3] outputs paid to a TxoutType::PUBKEYHASH. | ||||
std::vector<CMutableTransaction> | std::vector<CMutableTransaction> | ||||
SetupDummyInputs(FillableSigningProvider &keystoreRet, | SetupDummyInputs(FillableSigningProvider &keystoreRet, | ||||
CCoinsViewCache &coinsRet, | CCoinsViewCache &coinsRet, | ||||
const std::array<Amount, 4> &nValues); | const std::array<Amount, 4> &nValues); | ||||
#endif // BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H | #endif // BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H |