Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/messages.py
Show First 20 Lines • Show All 1,106 Lines • ▼ Show 20 Lines | class msg_mempool: | ||||
def serialize(self): | def serialize(self): | ||||
return b"" | return b"" | ||||
def __repr__(self): | def __repr__(self): | ||||
return "msg_mempool()" | return "msg_mempool()" | ||||
class msg_notfound: | |||||
__slots__ = ("vec", ) | |||||
command = b"notfound" | |||||
def __init__(self, vec=None): | |||||
self.vec = vec or [] | |||||
def deserialize(self, f): | |||||
self.vec = deser_vector(f, CInv) | |||||
def serialize(self): | |||||
return ser_vector(self.vec) | |||||
def __repr__(self): | |||||
return "msg_notfound(vec={})".format(repr(self.vec)) | |||||
class msg_sendheaders: | class msg_sendheaders: | ||||
__slots__ = () | __slots__ = () | ||||
command = b"sendheaders" | command = b"sendheaders" | ||||
def __init__(self): | def __init__(self): | ||||
pass | pass | ||||
def deserialize(self, f): | def deserialize(self, f): | ||||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |