diff options
| author | Pieter Wuille <[email protected]> | 2020-06-18 16:32:32 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-07-30 13:57:53 -0700 |
| commit | e549bf8a9afae42fcda805e216a1cde62df195a6 (patch) | |
| tree | 2d00e10ead84a3162f7ddc74300dcfbd340853a4 /src/net.cpp | |
| parent | Make script/standard's BaseHash Span-convertible (diff) | |
| download | discoin-e549bf8a9afae42fcda805e216a1cde62df195a6.tar.xz discoin-e549bf8a9afae42fcda805e216a1cde62df195a6.zip | |
Make CHash256 and CHash160 consume Spans
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 0c56cddbd..435a527ce 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -685,7 +685,7 @@ int V1TransportDeserializer::readData(const char *pch, unsigned int nBytes) vRecv.resize(std::min(hdr.nMessageSize, nDataPos + nCopy + 256 * 1024)); } - hasher.Write((const unsigned char*)pch, nCopy); + hasher.Write({(const unsigned char*)pch, nCopy}); memcpy(&vRecv[nDataPos], pch, nCopy); nDataPos += nCopy; |