mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Add PSBTInput::GetOutPoint
Helper for getting the PSBTInput COutPoint
This commit is contained in:
parent
4ff2593280
commit
d8dba3333b
2 changed files with 6 additions and 0 deletions
|
|
@ -185,6 +185,11 @@ bool PSBTInput::GetUTXO(CTxOut& utxo) const
|
|||
return true;
|
||||
}
|
||||
|
||||
COutPoint PSBTInput::GetOutPoint() const
|
||||
{
|
||||
return COutPoint(prev_txid, *prev_out);
|
||||
}
|
||||
|
||||
bool PSBTInput::IsNull() const
|
||||
{
|
||||
return !non_witness_utxo && witness_utxo.IsNull() && partial_sigs.empty() && unknown.empty() && hd_keypaths.empty() && redeem_script.empty() && witness_script.empty();
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@ struct PSBTInput
|
|||
void FromSignatureData(const SignatureData& sigdata);
|
||||
void Merge(const PSBTInput& input);
|
||||
bool GetUTXO(CTxOut& utxo) const;
|
||||
COutPoint GetOutPoint() const;
|
||||
PSBTInput(uint32_t version) : m_psbt_version(version) {}
|
||||
|
||||
template <typename Stream>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue