Add GetVersion helper to PSBT

This commit is contained in:
Andrew Chow
2021-01-04 17:21:29 -05:00
parent c3eb416b88
commit df84fa99c5
2 changed files with 10 additions and 1 deletions

View File

@@ -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;
}