diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-06-26 13:36:09 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-07-30 13:57:09 -0700 |
commit | 2a2182c387f607cd8284f33890bd285a81077b7f (patch) | |
tree | b267918526b915d10a4c4cd82787e333c7e3f6d3 /src | |
parent | e63dcc3a6752e7d406e7a650c2d6c2e95cd39aab (diff) | |
download | bitcoin-2a2182c387f607cd8284f33890bd285a81077b7f.tar.xz |
Make script/standard's BaseHash Span-convertible
Diffstat (limited to 'src')
-rw-r--r-- | src/script/standard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/standard.h b/src/script/standard.h index fd29353886..992e37675f 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -79,6 +79,9 @@ public: { 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) */ |