MCPcopy Create free account
hub / github.com/ElementsProject/elements / send_get_data

Method send_get_data

test/functional/p2p_sendheaders.py:119–124  ·  view source on GitHub ↗

Request data for a list of block hashes.

(self, block_hashes)

Source from the content-addressed store, hash-verified

117 self.recent_headers_announced = []
118
119 def send_get_data(self, block_hashes):
120 """Request data for a list of block hashes."""
121 msg = msg_getdata()
122 for x in block_hashes:
123 msg.inv.append(CInv(MSG_BLOCK, x))
124 self.send_message(msg)
125
126 def send_get_headers(self, locator, hashstop):
127 msg = msg_getheaders()

Callers 1

test_nonnull_locatorsMethod · 0.45

Calls 3

CInvClass · 0.90
msg_getdataClass · 0.50
send_messageMethod · 0.45

Tested by 1

test_nonnull_locatorsMethod · 0.36