diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-06-26 13:36:41 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-07-30 13:57:54 -0700 |
commit | 77c507358bda9bd6c496f33e0f4418c0603bb08d (patch) | |
tree | 53e59bb680078392dbc32315c0b0f2adcde882f9 /src/net.cpp | |
parent | 02c4cc5c5ddf61f98ee366a4bea8abc26de492bd (diff) |
Make Hash[160] consume range-like objects
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 438625bb36..026e3534fc 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -736,7 +736,7 @@ CNetMessage V1TransportDeserializer::GetMessage(const CMessageHeader::MessageSta void V1TransportSerializer::prepareForTransport(CSerializedNetMsg& msg, std::vector<unsigned char>& header) { // create dbl-sha256 checksum - uint256 hash = Hash(msg.data.begin(), msg.data.end()); + uint256 hash = Hash(msg.data); // create header CMessageHeader hdr(Params().MessageStart(), msg.m_type.c_str(), msg.data.size()); |