aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/messages.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-03 15:54:14 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-04-03 16:00:12 +0200
commit0ed2d8e07d3806d78d03a77d2153f22f9d733a07 (patch)
treea337653ca5861a1a24b44a22c971384c365f0305 /test/functional/test_framework/messages.py
parentf0d6487e290761a4fb03798240a351b5fddfdb38 (diff)
downloadbitcoin-0ed2d8e07d3806d78d03a77d2153f22f9d733a07.tar.xz
test: add BIP37 remote crash bug [CVE-2013-5700] test to p2p_filter.py
Diffstat (limited to 'test/functional/test_framework/messages.py')
-rwxr-xr-xtest/functional/test_framework/messages.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py
index ff0c763b72..5f8fcc6fd8 100755
--- a/test/functional/test_framework/messages.py
+++ b/test/functional/test_framework/messages.py
@@ -1356,6 +1356,25 @@ class msg_filterload:
self.data, self.nHashFuncs, self.nTweak, self.nFlags)
+class msg_filteradd:
+ __slots__ = ("data")
+ command = b"filteradd"
+
+ def __init__(self, data):
+ self.data = data
+
+ def deserialize(self, f):
+ self.data = deser_string(f)
+
+ def serialize(self):
+ r = b""
+ r += ser_string(self.data)
+ return r
+
+ def __repr__(self):
+ return "msg_filteradd(data={})".format(self.data)
+
+
class msg_filterclear:
__slots__ = ()
command = b"filterclear"