MCPcopy Create free account
hub / github.com/LUX-Core/lux / msg_getdata

Class msg_getdata

test/functional/test_framework/mininode.py:1146–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144
1145
1146class msg_getdata(object):
1147 command = b"getdata"
1148
1149 def __init__(self, inv=None):
1150 self.inv = inv if inv != None else []
1151
1152 def deserialize(self, f):
1153 self.inv = deser_vector(f, CInv)
1154
1155 def serialize(self):
1156 return ser_vector(self.inv)
1157
1158 def __repr__(self):
1159 return "msg_getdata(inv=%s)" % (repr(self.inv))
1160
1161
1162class msg_getblocks(object):

Callers 2

run_testMethod · 0.90
on_invMethod · 0.70

Calls

no outgoing calls

Tested by 1

run_testMethod · 0.72