Changeset View
Changeset View
Standalone View
Standalone View
src/psbt.h
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | struct PartiallySignedTransaction { | ||||
NODISCARD bool Merge(const PartiallySignedTransaction &psbt); | NODISCARD bool Merge(const PartiallySignedTransaction &psbt); | ||||
bool IsSane() const; | bool IsSane() const; | ||||
bool AddInput(const CTxIn &txin, PSBTInput &psbtin); | bool AddInput(const CTxIn &txin, PSBTInput &psbtin); | ||||
bool AddOutput(const CTxOut &txout, const PSBTOutput &psbtout); | bool AddOutput(const CTxOut &txout, const PSBTOutput &psbtout); | ||||
PartiallySignedTransaction() {} | PartiallySignedTransaction() {} | ||||
PartiallySignedTransaction(const PartiallySignedTransaction &psbt_in) | PartiallySignedTransaction(const PartiallySignedTransaction &psbt_in) | ||||
: tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), | : tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), | ||||
unknown(psbt_in.unknown) {} | unknown(psbt_in.unknown) {} | ||||
explicit PartiallySignedTransaction(const CTransaction &txIn); | explicit PartiallySignedTransaction(const CMutableTransaction &txIn); | ||||
/** | /** | ||||
* Finds the UTXO for a given input index | * Finds the UTXO for a given input index | ||||
* | * | ||||
* @param[out] utxo The UTXO of the input if found | * @param[out] utxo The UTXO of the input if found | ||||
* @param[in] input_index Index of the input to retrieve the UTXO of | * @param[in] input_index Index of the input to retrieve the UTXO of | ||||
* @return Whether the UTXO for the specified input was found | * @return Whether the UTXO for the specified input was found | ||||
*/ | */ | ||||
bool GetInputUTXO(CTxOut &utxo, int input_index) const; | bool GetInputUTXO(CTxOut &utxo, int input_index) const; | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |