Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115619
D8226.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8226.diff
View Options
diff --git a/src/net.h b/src/net.h
--- a/src/net.h
+++ b/src/net.h
@@ -684,8 +684,6 @@
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 Config &config) const = 0;
// set the serialization context version
virtual void SetVersion(int version) = 0;
// read and deserialize data
@@ -748,9 +746,6 @@
hdrbuf.SetVersion(nVersionIn);
vRecv.SetVersion(nVersionIn);
}
- bool OversizedMessageDetected(const Config &config) const {
- return (in_data && hdr.IsOversized(config));
- }
int Read(const Config &config, const char *pch, uint32_t nBytes) {
return in_data ? readData(pch, nBytes)
: readHeader(config, pch, nBytes);
diff --git a/src/net.cpp b/src/net.cpp
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -586,14 +586,6 @@
return false;
}
- if (m_deserializer->OversizedMessageDetected(config)) {
- LogPrint(BCLog::NET,
- "Oversized message from peer=%i, disconnecting\n",
- GetId());
- m_deserializer->Reset();
- return false;
- }
-
pch += handled;
nBytes -= handled;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 11:34 (5 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187633
Default Alt Text
D8226.diff (1 KB)
Attached To
D8226: Remove oversized message detection from log and interface
Event Timeline
Log In to Comment