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

Method send_get_data

test/functional/p2p_sendheaders.py:113–118  ·  view source on GitHub ↗

Request data for a list of block hashes.

(self, block_hashes)

Source from the content-addressed store, hash-verified

111 self.recent_headers_announced = []
112
113 def send_get_data(self, block_hashes):
114 """Request data for a list of block hashes."""
115 msg = msg_getdata()
116 for x in block_hashes:
117 msg.inv.append(CInv(MSG_BLOCK, x))
118 self.send_without_ping(msg)
119
120 def send_get_headers(self, locator, hashstop):
121 msg = msg_getheaders()

Callers 1

test_nonnull_locatorsMethod · 0.80

Calls 3

CInvClass · 0.90
msg_getdataClass · 0.85
send_without_pingMethod · 0.80

Tested by 1

test_nonnull_locatorsMethod · 0.64