Make script/standard's BaseHash Span-convertible

This commit is contained in:
Pieter Wuille committed 2020-07-30 13:57:09 -07:00
1 parent e63dcc3a67
commit 2a2182c387
1 file changed
+3
+3
View File
@@ -79,6 +79,9 @@ public:
{ {
return m_hash.size(); return m_hash.size();
} }
unsigned char* data() { return m_hash.data(); }
const unsigned char* data() const { return m_hash.data(); }
}; };
/** A reference to a CScript: the Hash160 of its serialization (see script.h) */ /** A reference to a CScript: the Hash160 of its serialization (see script.h) */