aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2024-02-27 11:57:26 +0000
committerdergoegge <n.goeggi@gmail.com>2024-02-27 14:19:15 +0000
commit1ed2c9829700054526156297552bb47230406098 (patch)
tree4a24483131dc76e2b3213ca1442617a366f12711 /src
parent1ec6bbeb8d27d31647d1433ccb87b362f6d81f90 (diff)
downloadbitcoin-1ed2c9829700054526156297552bb47230406098.tar.xz
Add transaction_identifier::size to allow Span conversion
Diffstat (limited to 'src')
-rw-r--r--src/util/transaction_identifier.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/transaction_identifier.h b/src/util/transaction_identifier.h
index 89e10dee01..d4a0ede25a 100644
--- a/src/util/transaction_identifier.h
+++ b/src/util/transaction_identifier.h
@@ -44,6 +44,7 @@ public:
constexpr void SetNull() { m_wrapped.SetNull(); }
std::string GetHex() const { return m_wrapped.GetHex(); }
std::string ToString() const { return m_wrapped.ToString(); }
+ static constexpr auto size() { return decltype(m_wrapped)::size(); }
constexpr const std::byte* data() const { return reinterpret_cast<const std::byte*>(m_wrapped.data()); }
constexpr const std::byte* begin() const { return reinterpret_cast<const std::byte*>(m_wrapped.begin()); }
constexpr const std::byte* end() const { return reinterpret_cast<const std::byte*>(m_wrapped.end()); }