5 #ifndef BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H 6 #define BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H 53 #endif // BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H
std::vector< CMutableTransaction > SetupDummyInputs(FillableSigningProvider &keystoreRet, CCoinsViewCache &coinsRet, const std::array< CAmount, 4 > &nValues)
int64_t CAmount
Amount in satoshis (Can be negative)
Fillable signing provider that keeps keys in an address->secret map.
CMutableTransaction BuildSpendingTransaction(const CScript &scriptSig, const CScriptWitness &scriptWitness, const CTransaction &txCredit)
void BulkTransaction(CMutableTransaction &tx, int32_t target_weight)
CMutableTransaction BuildCreditingTransaction(const CScript &scriptPubKey, int nValue=0)
An interface to be implemented by keystores that support signing.
Serialized script, used inside transaction inputs and outputs.
A mutable version of CTransaction.
The basic transaction that is broadcasted on the network and contained in blocks. ...
CCoinsView that adds a memory cache for transactions to another CCoinsView.
bool SignSignature(const SigningProvider &provider, const CScript &fromPubKey, CMutableTransaction &txTo, unsigned int nIn, const CAmount &amount, int nHashType, SignatureData &sig_data)
Produce a satisfying script (scriptSig or witness).