diff options
| author | Pieter Wuille <[email protected]> | 2020-06-26 13:36:09 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-07-30 13:57:09 -0700 |
| commit | 2a2182c387f607cd8284f33890bd285a81077b7f (patch) | |
| tree | b267918526b915d10a4c4cd82787e333c7e3f6d3 /src/script | |
| parent | Add MakeUCharSpan, to help constructing Span<[const] unsigned char> (diff) | |
| download | discoin-2a2182c387f607cd8284f33890bd285a81077b7f.tar.xz discoin-2a2182c387f607cd8284f33890bd285a81077b7f.zip | |
Make script/standard's BaseHash Span-convertible
Diffstat (limited to 'src/script')
| -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 fd2935388..992e37675 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) */ |