diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2019-10-18 11:57:10 -0700 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2019-10-23 09:27:25 +0200 |
commit | 6a91499496d76c2b3e84489e9723b60514fb08db (patch) | |
tree | 4f83d328a4fe9fcab0279a96433b8c04fb577ce1 /src/net.h | |
parent | b0e10ff4df3d4c70fb172ea8c3128c82e6e368bb (diff) |
Remove oversized message detection from log and interface
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -642,8 +642,6 @@ public: virtual void Reset() = 0; // returns true if the current deserialization is complete virtual bool Complete() const = 0; - // checks if the potential message in deserialization is oversized - virtual bool OversizedMessageDetected() const = 0; // set the serialization context version virtual void SetVersion(int version) = 0; // read and deserialize data @@ -695,9 +693,6 @@ public: hdrbuf.SetVersion(nVersionIn); vRecv.SetVersion(nVersionIn); } - bool OversizedMessageDetected() const { - return (in_data && hdr.nMessageSize > MAX_PROTOCOL_MESSAGE_LENGTH); - } int Read(const char *pch, unsigned int nBytes) { return in_data ? readData(pch, nBytes) : readHeader(pch, nBytes); } |