File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ class transaction_identifier
2424 // Note: Use FromUint256 externally instead.
2525 transaction_identifier (const uint256& wrapped) : m_wrapped{wrapped} {}
2626
27- // TODO: Comparisons with uint256 should be disallowed once we have
28- // converted most of the code to using the new txid types.
29- constexpr int Compare (const uint256& other) const { return m_wrapped.Compare (other); }
3027 constexpr int Compare (const transaction_identifier<has_witness>& other) const { return m_wrapped.Compare (other.m_wrapped ); }
3128 template <typename Other>
3229 constexpr int Compare (const Other& other) const
@@ -65,15 +62,6 @@ class transaction_identifier
6562 constexpr const std::byte* end () const { return reinterpret_cast <const std::byte*>(m_wrapped.end ()); }
6663 template <typename Stream> void Serialize (Stream& s) const { m_wrapped.Serialize (s); }
6764 template <typename Stream> void Unserialize (Stream& s) { m_wrapped.Unserialize (s); }
68-
69- /* * Conversion function to `uint256`.
70- *
71- * Note: new code should use `ToUint256`.
72- *
73- * TODO: This should be removed once the majority of the code has switched
74- * to using the Txid and Wtxid types. Until then it makes for a smoother
75- * transition to allow this conversion. */
76- operator const uint256&() const LIFETIMEBOUND { return m_wrapped; }
7765};
7866
7967/* * Txid commits to all transaction fields except the witness. */
You can’t perform that action at this time.
0 commit comments