[test] P2P functional test for certain fingerprinting protections

This commit is contained in:
Jim Posen
2017-08-24 17:06:42 -07:00
parent a2be3b66b5
commit eff4bd8ab2
3 changed files with 161 additions and 2 deletions

View File

@@ -1310,8 +1310,8 @@ class msg_getheaders(object):
class msg_headers(object):
command = b"headers"
def __init__(self):
self.headers = []
def __init__(self, headers=None):
self.headers = headers if headers is not None else []
def deserialize(self, f):
# comment in bitcoind indicates these should be deserialized as blocks