Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 720 Lines • ▼ Show 20 Lines | int V1TransportDeserializer::readData(const char *pch, uint32_t nBytes) { | ||||
nDataPos += nCopy; | nDataPos += nCopy; | ||||
return nCopy; | return nCopy; | ||||
} | } | ||||
const uint256 &V1TransportDeserializer::GetMessageHash() const { | const uint256 &V1TransportDeserializer::GetMessageHash() const { | ||||
assert(Complete()); | assert(Complete()); | ||||
if (data_hash.IsNull()) { | if (data_hash.IsNull()) { | ||||
hasher.Finalize(data_hash.begin()); | hasher.Finalize(data_hash); | ||||
} | } | ||||
return data_hash; | return data_hash; | ||||
} | } | ||||
CNetMessage | CNetMessage | ||||
V1TransportDeserializer::GetMessage(const Config &config, | V1TransportDeserializer::GetMessage(const Config &config, | ||||
const std::chrono::microseconds time) { | const std::chrono::microseconds time) { | ||||
// decompose a single CNetMessage from the TransportDeserializer | // decompose a single CNetMessage from the TransportDeserializer | ||||
▲ Show 20 Lines • Show All 2,449 Lines • Show Last 20 Lines |