mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 13:43:43 +01:00
Add GetVersion helper to PSBT
This commit is contained in:
@@ -401,3 +401,11 @@ bool DecodeRawPSBT(PartiallySignedTransaction& psbt, const std::string& tx_data,
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t PartiallySignedTransaction::GetVersion() const
|
||||
{
|
||||
if (m_version != std::nullopt) {
|
||||
return *m_version;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user