From 1ed2c9829700054526156297552bb47230406098 Mon Sep 17 00:00:00 2001 From: dergoegge Date: Tue, 27 Feb 2024 11:57:26 +0000 Subject: Add transaction_identifier::size to allow Span conversion --- src/util/transaction_identifier.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(m_wrapped.data()); } constexpr const std::byte* begin() const { return reinterpret_cast(m_wrapped.begin()); } constexpr const std::byte* end() const { return reinterpret_cast(m_wrapped.end()); } -- cgit v1.2.3