aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2018-07-31 17:56:47 -0700
committerAndrew Chow <achow101-github@achow101.com>2019-02-16 00:04:27 -0500
commit77542cf2a5f8abb97dd46f782c1b0199cc062033 (patch)
tree9afe02a12ae92cb9594d46f3d3e682f26c26551c /src/psbt.h
parentcb40b3abd4514361a024a1e7a1a281da9261261b (diff)
Move PSBT UTXO fetching to a separate method
Diffstat (limited to 'src/psbt.h')
-rw-r--r--src/psbt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/psbt.h b/src/psbt.h
index cc4882c580..27b0aedd05 100644
--- a/src/psbt.h
+++ b/src/psbt.h
@@ -394,6 +394,14 @@ struct PartiallySignedTransaction
PartiallySignedTransaction() {}
PartiallySignedTransaction(const PartiallySignedTransaction& psbt_in) : tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), unknown(psbt_in.unknown) {}
explicit PartiallySignedTransaction(const CMutableTransaction& tx);
+ /**
+ * Finds the UTXO for a given input index
+ *
+ * @param[out] utxo The UTXO of the input if found
+ * @param[in] input_index Index of the input to retrieve the UTXO of
+ * @return Whether the UTXO for the specified input was found
+ */
+ bool GetInputUTXO(CTxOut& utxo, int input_index) const;
template <typename Stream>
inline void Serialize(Stream& s) const {