MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / msg_getdata

Class msg_getdata

test/functional/test_framework/messages.py:1284–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282
1283
1284class msg_getdata:
1285 __slots__ = ("inv",)
1286 msgtype = b"getdata"
1287
1288 def __init__(self, inv=None):
1289 self.inv = inv if inv is not None else []
1290
1291 def deserialize(self, f):
1292 self.inv = deser_vector(f, CInv)
1293
1294 def serialize(self):
1295 return ser_vector(self.inv)
1296
1297 def __repr__(self):
1298 return "msg_getdata(inv=%s)" % (repr(self.inv))
1299
1300
1301class msg_getblocks:

Callers 15

test_reorg_relayMethod · 0.90
test_tx_in_blockMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
on_invMethod · 0.90
test_msg_mempoolMethod · 0.90

Calls

no outgoing calls

Tested by 10

test_reorg_relayMethod · 0.72
test_tx_in_blockMethod · 0.72
test_msg_mempoolMethod · 0.72
run_testMethod · 0.68